Number theoryDifficulty 5.0AIME, harderFind the answer
Find the smallest n such that n! ends in 290 zeroes.
A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.
Solution
Each 0 represents a factor of 10=2⋅5. Thus, we wish to find the smallest factorial that contains at least 290 2's and 290 5's in its prime factorization. Let this number be n!, so the factorization of n! contains 2 to the power p and 5 to the power q, where p=⌊2n⌋+⌊22n⌋+⌊23n⌋+⋯ and q=⌊5n⌋+⌊52n⌋+⌊53n⌋+⋯ (this takes into account one factor for each single multiple of 2 or 5 that is ≤n, an additional factor for each multiple of 22 or 52, and so on). Naturally, p≥q because 2 is smaller than 5. Thus, we want to bring q as low to 290 as possible. If q=⌊5n⌋+⌊52n⌋+⌊53n⌋+⋯, we form a rough geometric sequence (by taking away the floor function) whose sum is represented by 290≈1−1/5n/5. Hence we estimate n=1160, and this gives us q=288. Adding 10 to the value of n gives the necessary two additional factors of 5, and so the answer is 1170.
Want a route through all this instead of an archive? The track
puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.
Source: Omni-MATH,
licensed Apache-2.0.
Statement reproduced verbatim; metadata (topic, difficulty) added by this project.