Problem 51950. Find the smallest integer m such that n divides m!
Solution Stats
Problem Comments
-
5 Comments
David, you are correct for Kempner(1535238), but that test asks for Kempner(Kempner(Kempner(1535238))).
Unfortunately, it does not stop lookup tables since 134 factors to 2 and 67, which means it obtains the same result as a lookup table. Kempner(Kempner(Kempner(1535238))) will do 134 -> 67 -> 67 and a lookup table 67->67->67.
May I suggest using Kempner(Kempner(Kempner(123456787654321))+10) as a test against lookup tables?
Solution Comments
Show commentsProblem Recent Solvers15
Suggested Problems
-
Test if a Number is a Palindrome without using any String Operations
235 Solvers
-
Calculate Euler's phi function
91 Solvers
-
Convert to Binary Coded Decimal
136 Solvers
-
Return fibonacci sequence do not use loop and condition version 2
54 Solvers
-
check whether a number is a pentatope number
61 Solvers
More from this Author291
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!