Re: Factorial in base 6
Hi, Krista -
In base 10, you get a zero at the end of a product if one of the
factors contains a prime factor of 5 and another of the factors
contains a prime factor of 2. The prime factors of 2 and 5 multiplied
together make 10 and produce a 0 at the end of the product.
If you want to (for example) find the number of 0's at the end of
1000! in base 10, you need to find the total number of factors of 5
and the total number of factors of 2 in all the numbers from 1 to
1000; the smaller of those two numbers will be the number of 0's at
the end of 1000!