Hi, I've this is my homework I've been given and I can only manage part i) and iii)
My work for part
i)
2x(3^2)
iii)
A zero appears at the end of the solution (as we go from 1! to 400!) every time we cross a number ending in 5 and every time we cross a number ending in 0.
Two zeros appear every time we cross a number ending in 50 and every time we cross a number ending in 00, However, this includes numbers already counted above (beware of double counting.
Number of numbers ending in "5" : 40
Number of numbers ending in "00" : 4 (100, 200, 300, 400)
Number of numbers ending in "50" : 4 (50, 150, 250, 350)
Number of remaining numbers ending with one "0" : 32 = 4*8 (10, 20, 30, 40, 60, 70, 80, 90 for each hundred).
Expected number of zeros at the end of the number = 40 + 8 + 8 + 32 = 88
Hello, nacknacka!
Your answer to is off . . .
Find the number of final zeroes in the base-ten representation of 400!
Every factor-of-5 (combined with a factor of 2) produces a final zero.
How many factors-of-5 are contained in 400-factorial?
Every 5th number contains a factor-of-5: . factors-of-5.
But every 25th number contains a factor of 5²
. . each of which contributes another factor-of-5: . more factors-of-5.
And every 125th number contains a factor of 5³,
. . each of which contributes yet another factor-of-5: . more factors-of-5.
Hence, there are: . factors-of-5.
Therefore, 400! ends with 99 zeroes.
Hello, nacknacka!
You can probably anticipate my approach to the first problem . . .
Find the prime factorization of 18!
Factors-of-2
Every 2nd number contains a factor of 2: . factors-of-2.
But every 4th number contains .
. . each of which contributes anothter factor-of-2: . more factors-of-2.
And every 8th number contains
. . each of which contributes yet another factor-of-2: . more factors-of-2.
And every 16th number contains
. . each of which contributes yet another factor-of-2: . more factors-of-2.
Hence, 18! contains sixteen 2's: .
Factors-of-3
Every 3rd number contains a factor of 3: . factors-of-3
But every 9th number contains
. . each of which contributes another factor-of-3: . more factors-of-3
Hence, 18! contains eight 3's: .
Factors-of-5
Every 5th number contains a factor-of-5: . factors-of-5
Hence, 18! contains three 5's: .
Factors-of-7
Every 7th number contains a factor-of-7: . factors-of-7
Factors-of-11, 13, 17
Every 11th number contains a factor-of-11: . factor-of-11
Every 13th number contains a factor-of-13: . factor-of-13
Every 17th number contains a factor-of-17: . factor-of-17
Hence, 18! contains: .
Therefore: .
For (i), there's always the brute force method:
= = which, of course, is the answer Soroban got.
For (iv), Soroban's method works for prime bases. For composite bases, you need to look at each prime factor of the base separately. In our base 10 example, there were plenty of factors of 2, so only the factors of 5 mattered.
- Hollywood