A questionable factorial problem

  Рет қаралды 10,342

Michael Penn

Michael Penn

Күн бұрын

Пікірлер: 69
@jacemandt
@jacemandt 2 күн бұрын
Maybe this problem statement would be clearer if it said "2500th digit from the right"?
@goodplacetostop2973
@goodplacetostop2973 2 күн бұрын
Michael is from the little-endian gang 😂
@pradeepsekar
@pradeepsekar 2 күн бұрын
I did the following mental maths. Number of 0s is 2000 + 400 + 80 + 16 + 3 - adds up to 2499. So 2500 is the last non zero digit as advertized. Did the math for the last digit of 10! by skipping 2 and 5 - and keeping only the last digit (i.e. Mod 10). 3*4 = 2, * 6 = 2, * 7 = 4, * 8 = 2, * 9 = 8. This is exactly what every set of 10 would yield if you only kept the last digits for each multiplication Then I calculated powers of 8 (again mod 10) to figure out that 8^5 = 8 (again mod 10). So 8^1000 is 8, which is the answer. Arrived without using a pen or paper. Then I skipped to the end of the video to check if I did one of my silly mistakes that I am very good at. I like the formal derivation in the video as that process is more generalized. But I also like my shortcut for this specific problem :-)
@yashgupta597
@yashgupta597 2 күн бұрын
but you don’t use every 2 up when you form all the tens in the number, and thus their must be some twos you didn’t factor into your calculation, or over factored.
@pradeepsekar
@pradeepsekar 2 күн бұрын
​@@yashgupta597You are right. I need to take away 499 of the 2s to cover the remaining powers of 5 (400+80+16+3). Again, 2^5=2 mod 10, and can be easily calculated to be 2^499 = 6 mod 10. Taking that away from 8 in my previous post leaves us again with an 8 (mod 10).
@rainerzufall42
@rainerzufall42 2 күн бұрын
We have different definitions of what the nth digit is! I count from the left to the right (from highest to lowest power of the base)!
@rainerzufall42
@rainerzufall42 2 күн бұрын
"what is the first nonzero digit of: 10,000!" isn't any better! That should be the LAST nonzero digit from the left.
@guilhermebacellar8161
@guilhermebacellar8161 2 күн бұрын
Thats cause youre wrong lol
@rainerzufall42
@rainerzufall42 2 күн бұрын
@@guilhermebacellar8161 I'm not from far east or middle east, so no, I read from left to right, and thus first is left, last is right, and you are dead wrong!
@guilhermebacellar8161
@guilhermebacellar8161 2 күн бұрын
@rainerzufall42 Bro neither am I. But is pretty much common sense, om maths, that when talking about digits, we talk from right to left, and it is taught in pre school where I live (Brazil)
@coc235
@coc235 2 күн бұрын
​@@guilhermebacellar8161so do you say for example 5863 as "three sixty eight hundred five thousand"?
@henrik3141
@henrik3141 2 күн бұрын
There was no good place to stop??
@Ranoake
@Ranoake Күн бұрын
I guess there wasn't a good place to stop.
@Unordinary-lg4yt
@Unordinary-lg4yt 2 күн бұрын
Off topic kinda but I noticed a pretty quick way to calculate successive powers of 5^n after n>2. From the right most digit to left. You just group by two digits, take half that value (floored), write down the ones place, and the leftmost digit will always be full value. Of course, the rightmost value is always 5. Example: 5^3 If 5^2 = 25 5, 25/2 = 12(floor), 125
@landsgevaer
@landsgevaer Күн бұрын
You, multiplying by 5 is the same as multiplying by 10 (i.e. adding a zero) and dividing by 2. Indeed.
@MyOneFiftiethOfADollar
@MyOneFiftiethOfADollar Күн бұрын
@@Unordinary-lg4yt what you discovered is a known application of the floor function that appears in sections or HW problem in some number theory textbooks. Nice job figuring it out on your own!
@stickfiftyfive
@stickfiftyfive 2 күн бұрын
Really cool problem and solution. Love it.
@pierreabbat6157
@pierreabbat6157 2 күн бұрын
Not to be confused with the question-mark function, which relates binary and continued-fraction representations of real numbers.
@philomath69
@philomath69 16 сағат бұрын
Where can i read those maths magazines .. do i need to pay for theme ?
@michaelroberts1120
@michaelroberts1120 2 күн бұрын
Note that the value of n is never explicitly stated (it is actually 8)
@GreenMeansGOF
@GreenMeansGOF 2 күн бұрын
10000? is the same thing as 9999?, right?
@Monster-nn.007
@Monster-nn.007 20 сағат бұрын
U are my true Prof!
@jellyfrancis
@jellyfrancis 2 күн бұрын
15:20 I guess there shouldn't be a 10000
@samsonblack
@samsonblack Күн бұрын
Correct. That's a chalko.
@AndyGoth111
@AndyGoth111 21 сағат бұрын
Same goes for 14:34
@krabbediem
@krabbediem 2 күн бұрын
Michael, love the videos. This is not a complaint but a suggestion. If you've already made videos explaining the theorems you use, could you please add them in the description or perhaps just reference what the theorems are called so we can look them up. I'm not well versed in all the number theory you make very good use of and it would be excellent if you told us that the proof could be found in name_of_video_in_the_number_theory_playlist. The reason I request this is that I was pretty much with you up until around 17:50 where I ultimately lost the plot ("multiply both sides by the inverse of 3..."). It was super frustrating because it was on the home stretch. I don't want this to sound like a complaint because I am super grateful for every video you make even if some go far over my head. Thank you so much for the content you provide. I wish you and everybody who bothered reading this far a very happy new year.
@Hagger36
@Hagger36 2 күн бұрын
In modular arithmetic you can't 'divide' in the normal way, so to cancel the three we need to multiply both sides by some number which is allowed. The 'inverse' of a number modulo n is a number where if you multiply them together you get 1 in that modulus. Here 3*2 = 6 which is congruent to 1 mod 5. In prime moduluses (real word??) you always have such an inverse. After you multiply both sides by three the LHS is 6N which is congruent to N mod 5
@samsonblack
@samsonblack Күн бұрын
"moduli" 😉
@MyOneFiftiethOfADollar
@MyOneFiftiethOfADollar Күн бұрын
@@krabbediem it does sound a little like a complaint since the time you took to ask about multiplicative inverses could have been used to look up the topic in a number theory textbook
@vankam3315
@vankam3315 2 күн бұрын
Professor could u give any hint to prove the fact on the left part of the blackboard 5:27 ? Just for curiosity, has this fact any meaning from the group's theory pov in terms of p-Sylow groups?
@noahtaul
@noahtaul Күн бұрын
Yes, it tells you the size of the p-Sylow subgroup inside S_n. But you can do better and describe exactly what the p-Sylow subgroup is: it’s the permutations that preserve the nested lists {{…{1, 2, … p}, {p+1, p+2, … 2p}, … {p^2-p+1, … p^2}}, {{p^2+1, … p^2+p}, {p^2+p+1, … p^2+2p}, …}} In other words, group all numbers that have the same digits except the 1’s digit (assuming we’re permuting [0, 1, … n-1] unlike above); then group the groups that have the same digits up to the p’s digit, then p^2 digit, etc. There is a p-Sylow subgroup that preserves this nested grouping (with ordering preserved as well). For example, the 2-Sylow subgroup of S_10 is the permutations preserving {{{{0,1},{2,3}},{{4,5},{6,7}}},{{{8,9}}}}. It’s of size 256, but it’s generated by (01), (23), (45), (67), (89), (02)(13), (46)(57), (04)(15)(26)(37).
@gavintillman1884
@gavintillman1884 22 сағат бұрын
I’d read the Q as posed as counting from the left, and would explicitly state in the problem that it’s the 2500th from the right that’s needed. Obviously counting from left is much harder as it’s not going to be easy to calculate the length of 10,000!
@jameskuyper
@jameskuyper 19 сағат бұрын
It's not as difficult as you might think. Stirling's formula gives a surprisingly accurate approximation to ln(n!). There is an infinite series that can be used to correct that estimate. I don't have time right now to determine how many terms of that series would be needed to estimate ln(10000!)/ln(10) with sufficient accuracy to determine the number of digits, but it shouldn't be a lot. Wikipedia's article on Factorials says that 10000! is approximately 2.846259681×10^35659.
@gavintillman1884
@gavintillman1884 19 сағат бұрын
@ maybe. Strikes methanol could become digital too much or too little with an approximation like that. At the very least you have to be more careful. No such worries counting from the right.
@jameskuyper
@jameskuyper 19 сағат бұрын
@@gavintillman1884Was "Strikes methanol" intended to be "Stirling's method"? I agree that the 2500th digit from the right is a lot easier than from the left. I was just pointing out that determining the number of digits, while difficult, is a lot easier than you might think.
@gavintillman1884
@gavintillman1884 16 сағат бұрын
@@jameskuyper ah that's quite an autocorrect fail on my part. I'm trying to remember what I was trying to say. I think the essence of it is that for continuous measures of nearness, Stirling is great - variation between Stirling and true calculation clearly gets smaller and smaller as a % - but not so sure for discrete measures of nearness - I can imagine that Stirling could easily have one more of fewer digits thatn the true calcuation.
@jameskuyper
@jameskuyper 10 сағат бұрын
@@gavintillman1884 I finally had time to check the actual numbers. Stirling's formula gives log10(10000!) = 35659.45, which implies that 10000! has 35660 digits. The leading correction is ln(1 + 1/(12×n))/ln(10), which is 3.6×10^-6, and all of the other corrections are even smaller, so they won't change the number of digits. This matches the result I already quoted. Using Stirling's formula to determine the value of 2500th digit from the left would be much more difficult, but it is more than sufficient to simply determine the number of the digits.
@noahtaul
@noahtaul 2 күн бұрын
Can’t you just use the theorem that the rightmost nonzero digit of n! is given by 2^(m/4) mod 10 where m is given by writing n in base 5, adding to n all the even digits of such a representation, and subtracting all odd digits? Here, 10000 in base 5 is 310000, so m=10000 - 3 - 1 + 0 + 0 + 0 + 0 = 9996, so the last digit is 2^(9996/4)=2^(2499) = 8 mod 10? Seems much easier 🤔
@landsgevaer
@landsgevaer Күн бұрын
That is a lemma at best 😉
@MichaelJamesActually
@MichaelJamesActually 2 күн бұрын
I was so tired, I thought he was so excited about the number 10,000. And was confused about it only having the 5 digits
@jcfgykjtdk
@jcfgykjtdk 2 күн бұрын
I got 2 😢
@andrewdsotomayor
@andrewdsotomayor 2 күн бұрын
Very Nice!
@stephenhamer8192
@stephenhamer8192 2 күн бұрын
Bravo! Nice problem and solution. New Year's resolution; learn more Number Theory
@tediustimmy
@tediustimmy Күн бұрын
Assuming that my calculator and my counting are correct: the 2500th digit from the left is a 9. We computed the 33161 digit from the left. The 2025th digit from the left is a 4.
@goodplacetostop2973
@goodplacetostop2973 2 күн бұрын
Dr. Penn, you should have asked the 2025th digit from the left… Anyway, not a good place to stop
@gniedu
@gniedu 2 күн бұрын
It would be 0, as shown. It would be an easy question Edit: now the guy added "from the left" in his comment so now my answer does not make sense anymore. His original comment was just "2025th digit"
@robertveith6383
@robertveith6383 2 күн бұрын
He is not "Bro." He is Dr. Penn, or at least Michael.
@levars1
@levars1 2 күн бұрын
​@@robertveith6383what is this bro yapping about, chat?💀
@goodplacetostop2973
@goodplacetostop2973 2 күн бұрын
@@gnieduyes but the 2025th from the left?
@goodplacetostop2973
@goodplacetostop2973 2 күн бұрын
@@levars1 Nah tbh I think he’s right. I was too chill 😂
@jesusdanielgaytanlopez3145
@jesusdanielgaytanlopez3145 23 сағат бұрын
goty
@gp-ht7ug
@gp-ht7ug 2 күн бұрын
My goodness
@titan1235813
@titan1235813 2 күн бұрын
My goodness indeed 😢
@Grizzly01-vr4pn
@Grizzly01-vr4pn Күн бұрын
So really the question should be asking what digit is in the 10²⁴⁹⁹ place value of 10 000!
Top 10 PROOFS in High School Math | jensenmath.ca
32:36
JensenMath
Рет қаралды 38 М.
how 1+1-1+1+⋯=½
14:37
Michael Penn
Рет қаралды 10 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
a combination of classic problem types
18:12
Michael Penn
Рет қаралды 7 М.
The strange cousin of the complex numbers -- the dual numbers.
19:14
System76 accidentally built the fastest Windows Arm PC
21:02
Jeff Geerling
Рет қаралды 325 М.
The unexpected probability result confusing everyone
17:24
Stand-up Maths
Рет қаралды 817 М.
A Number to the Power of a Matrix - Numberphile
16:45
Numberphile
Рет қаралды 183 М.
The Genius Way Computers Multiply Big Numbers
22:04
PurpleMind
Рет қаралды 156 М.
your Calculus teacher lied* to you
18:26
Michael Penn
Рет қаралды 75 М.
Researchers thought this was a bug (Borwein integrals)
17:26
3Blue1Brown
Рет қаралды 3,9 МЛН