Possible Value of n When 2005th Digit of n is 0

  • Context: Graduate 
  • Thread starter Thread starter vagabond
  • Start date Start date
  • Tags Tags
    Value
Click For Summary
SUMMARY

The discussion centers on determining the values of n for which the 2005th digit of n! is zero. It is established that there are infinitely many integers n such that the 2005th digit of n! is zero, specifically for all n greater than a certain integer m, where m is the smallest integer satisfying 5^2005 | m!. The method to find m involves calculating the highest power of 5 that divides m!, expressed as the sum of floor functions: ∑_{n=1}^{∞} ⌊m/5^n⌋. The specific range of n values between 800 and 1000 that yield a zero in the 2005th position is also provided.

PREREQUISITES
  • Understanding of factorial notation and properties
  • Knowledge of prime factorization, specifically powers of 5
  • Familiarity with the floor function and summation notation
  • Basic combinatorial number theory concepts
NEXT STEPS
  • Calculate the highest power of 5 that divides n! for various values of n
  • Explore the implications of the formula ∑_{n=1}^{∞} ⌊m/5^n⌋ in more depth
  • Investigate the distribution of trailing zeros in factorials
  • Learn about the relationship between factorial growth and digit representation
USEFUL FOR

Mathematicians, students studying number theory, and anyone interested in combinatorial mathematics or the properties of factorials.

vagabond
Messages
6
Reaction score
0
Given that the 2005th digit in n! is zero, what is the possible value of n ?
Thanks :smile:
 
Physics news on Phys.org
Are you counting digits from the right? ie. the 3rd digit of 1234567 would be 5? Are you looking for the least n where the 2005th digit of n! is 0?

Can you work out the highest power of 5 that divides n!? The highest power of 2? (the 2's won't really be an issue though)
 
Are you counting digits from the right? ie. the 3rd digit of 1234567 would be 5?
Yes.

Are you looking for the least n where the 2005th digit of n! is 0?
I would like to find all n where the 2005th digit of n! is 0.
Can we deduce if the possible number of such n is finite? Can we find the pattern?

Can you work out the highest power of 5 that divides n!? The highest power of 2? (the 2's won't really be an issue though)
If n is known, I can do it.
For instance, if n=100, then in n!, the factors 5, 10, 15, 20, ..., 95, 100 involve 5.
So the highest power of 5 that divides n! is 1+1+1+1+2+1+1+1+1+2+1+1+1+1+2+1+1+1+1+2 = 24.
But if n is unknown, I do not know how to do.

Also, this method is used to count the number of '0' appeared in n!.
But how do we know the location of the '0' is at 2005th position or not?
 
Can we deduce if the possible number of such n is finite? Can we find the pattern?

This is easy. No, there are an infinite number of integers n such that the 2005th (from the right) digit of n! is 0, since letting m be the first integer such that 10^{2005}|m! we find that the 2005th digit of m! is 0 and so is the 2005th digit of n! for every \mathbb{Z} \ni n > m.

I would like to find all n where the 2005th digit of n! is 0.

This is not so easy. What we can do is work out the m that I mentioned above (so that every n>m has the desired property also). This is equivalent to finding the first m s.t. 5^{2005}|m! (since there are clearly more factors of 2 than there are of 5 in m!), so let's see what we can do. I claim that the number of factors of 5 in m! for any positive integer m is

\sum_{n=1}^{\infty} \biggr \lfloor \frac{m}{5^n} \biggr \rfloor.

Now, before you use this, you should definitely prove it on your own (I haven't written out a rigorous proof - so maybe I'm wrong! You shouldn't risk it!).

Once you show that the statement above is true, you're almost done - you just have to solve for the first m such that

\sum_{n=1}^{\infty} \biggr \lfloor \frac{m}{5^n} \biggr \rfloor \geq 2005.
 
Last edited:
Here's the set between 800! and 1000! that have the 2005'th digit equal to 0:

{810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824,
825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839,
840, 841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854,
855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869,
870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884,
886, 905, 922, 934, 948, 955, 965, 969, 985, 986, 992}
 
The digits are being counted from the right, not the left.
 
i guess it should be 2008.i mean n should be 2008.just a guess you might give it a try
 
shmoe said:
The digits are being counted from the right, not the left.

Ok, thanks. These then:

{811, 821, 828, 846, 850, 867, 872, 878, 880, 893, 896, 924, 925, 926, 932,
937, 938, 944, 978, 985}
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
6
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
5K
  • · Replies 6 ·
Replies
6
Views
631
  • · Replies 3 ·
Replies
3
Views
3K