Number of Zeros at the End of 1962

  • Context: Undergrad 
  • Thread starter Thread starter Kartik.
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around determining the number of trailing zeros in the factorial of the number 1962. Participants explore various methods and considerations for calculating this, including prime factorization and the contributions of factors of 5 and 2.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • Some participants propose breaking down 1962 into its prime factors to find the contributions of 2s and 5s to the trailing zeros.
  • It is suggested that the number of factors of 5 can be calculated using 1962/5, but this is questioned as being insufficient without considering higher powers of 5.
  • A later reply introduces a formula for calculating the total number of factors of 5 in 1962!, which includes terms for higher powers of 5.
  • One participant shares a personal experience of calculating trailing zeros for a much larger factorial and mentions the use of Stirling's asymptotic formula for approximation.
  • Another participant provides an example of calculating trailing zeros for numbers up to 1 million, noting the limited number of terms in the sum used for the calculation.
  • There is a claim that calculating trailing zeros for powers of 10 can be simplified using a specific formula, which is met with skepticism by another participant.

Areas of Agreement / Disagreement

Participants express differing views on the sufficiency of using 1962/5 alone to determine the number of trailing zeros, with some emphasizing the need to consider higher powers of 5. The discussion remains unresolved regarding the best approach to calculate the trailing zeros.

Contextual Notes

Some participants note that the calculations depend on the definitions and methods used, particularly regarding the treatment of higher powers of 5 and the application of Stirling's formula.

Kartik.
Messages
55
Reaction score
1
We want to know how many zeros appear at the end of the number 'N' = 1962!
In the solution of it,
We break the number N in a prime numbers notation and which looks like N = 2^a1 x 3^a2 x 5^a3...p^a(n), so as the question the asks about the zeros in the the product we are concerned about the numbers a1 and a3, as for now because they yield a zero and also about those factors of N which will yield them too.To determine a3, we take that every factor of N divisible by 5 will yield one 5 and so the number of such factors will be 1962/5(and that is my question?) .
What exactly will the 1962/5 provide us with?
 
Mathematics news on Phys.org
Kartik. said:
We want to know how many zeros appear at the end of the number 'N' = 1962!
In the solution of it,
We break the number N in a prime numbers notation and which looks like N = 2^a1 x 3^a2 x 5^a3...p^a(n), so as the question the asks about the zeros in the the product we are concerned about the numbers a1 and a3, as for now because they yield a zero and also about those factors of N which will yield them too.To determine a3, we take that every factor of N divisible by 5 will yield one 5 and so the number of such factors will be 1962/5(and that is my question?) .
What exactly will the 1962/5 provide us with?
You also need to consider some of those numbers are divisible by 25, 125...
 
Hi kartik
1962! is 1*2*3*...*1962
so just look at this sequence of numbers:
1, 2, 3, 4, 5, ...9, 10, ..., 14, 15, ...1960, 1961, 1962
As you can see, you have a '5'... every 5 steps :)
So 1962/5 is how many times you will get a factor 5 and this is a3

Cheers...
 
oli4 said:
Hi kartik
1962! is 1*2*3*...*1962
so just look at this sequence of numbers:
1, 2, 3, 4, 5, ...9, 10, ..., 14, 15, ...1960, 1961, 1962
As you can see, you have a '5'... every 5 steps :)
So 1962/5 is how many times you will get a factor 5 and this is a3

Cheers...

No, a3 will be more than that. See my previous post.
 
Yes you are correct haruspex, your post wasn't there while I was posting mine
Indeed, the higher powers of 5 must be considered too, fortunately there are not too many of them and they can be added in by hand
 
What haruspex said in general can be formed up as a sum. Say for n!

Q = \left [\frac{n}{5} \right ] + \left [ \frac{n}{5^2} \right ] + \left [ \frac{n}{5^3} \right ] + ... \left [ \frac{n}{5^t} \right ]

Q is the number of times the factorial can be divided by 5, and hence 10.

The sum ends(or each term becomes 0) when 5t exceeds n.

This in fact, is a particular case to obtain the number of prime divisors of any positive integer factorial.
 
" we are concerned about the numbers a1 and a3, as for now because they yield a zero and also about those factors of N which will yield them too"

I did write about the factors which will also yield a 'n' number of 5s and 2s.

Infinitum and oli4 are quite convincing, thank you.
 
i asked this question once on Yahoo! Answers

i asked how many trailing zeroes does the factorial of 1 million have?. I did manage to calculate the # of zeroes in Mathematica, but i wanted to know the theory behind it.

A man answered that you can use "Sterling's asymptotic formula" which is used to approximate factorials at very large values. He managed to find the EXACT number of trailing zeroes i found using Mathematica. i was truly amazed by this :D

http://en.wikipedia.org/wiki/Asymptotic_formula
 
Even for numbers up to 1 million, the sum \sum\limits_{k=1}^{+\infty} \left\lfloor\dfrac{n}{5^k}\right\rfloor only contains 8 terms, namely 200 000, 40 000, 8 000, 1 600, 320, 64, 12, 2, which makes a total of 249 998 trailing zeroes.
 
  • #10
For powers of 10 it's really easy. You can sum the series to get (10n-2n)/4. I think whoever claimed to use Sterling's formula was kidding.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 35 ·
2
Replies
35
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K