Counting Zeros in the Product of Natural Numbers up to 1962!

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

Discussion Overview

The discussion revolves around calculating the number of trailing zeros in the factorial of 1962 (1962!). Participants explore the mathematical reasoning behind counting the factors of 5 and 2 in the product of natural numbers up to 1962, focusing on the contributions of these factors to the formation of trailing zeros.

Discussion Character

  • Mathematical reasoning
  • Exploratory

Main Points Raised

  • One participant questions how to calculate the occurrences of factors of 5 and 2 in the factorial representation, indicating a need for clarity on the method.
  • Another participant suggests that only the count of factors of 5 (denoted as a3) is necessary to determine the number of trailing zeros, implying that factors of 2 are abundant.
  • A third participant elaborates on the method of counting factors of 5 by considering multiples of 5, 25, and 125, emphasizing the need to account for higher powers of 5 in the calculation.
  • A later reply reiterates the importance of calculating the highest power of 5 that divides 1962!, providing a formula for this calculation and presenting a specific result of 488, derived from summing contributions from various powers of 5.

Areas of Agreement / Disagreement

Participants generally agree on the approach of counting factors of 5 to determine the number of trailing zeros, but there is some uncertainty regarding the initial calculations and the necessity of counting factors of 2.

Contextual Notes

Some participants express uncertainty about the reasoning behind the formula for counting factors of 5 and the conditions under which it is applicable, indicating a need for further clarification on these mathematical steps.

Kartik.
Messages
55
Reaction score
1
Question- How many zeros are there in the product of all the natural numbers right from 1 to 1962 or in short in 1962! ?

Attempt-
Well,
The product as a product of prime numbers, will denoted as -
Let the product be N,

N = 2a1 . 3a2 . 5a3 . ... pax


As far as i see it we will have to count the number of 5s and 2s that occur in the product N's representation above and also the factors which will yield 5s or 2s.So by far we are concerned only to the numbers a1 and a3.And here lies my problem, how will we calculate the number of occurrences and also figure out that how many other factors will yield how many 5s or 2s ?
 
Physics news on Phys.org
You only need to calculate a3, the value of a1 is not needed for the answer (of course you should figure out why)

To figure out what a3 is, it might help to first reason how you could calculate the number of times 5 divides a smaller number like 100! (where you can calculate this by hand) and then see how you would extend the result
 
The number of 2's is obviously greater than the number of 5's, so there's always a 2 for each 5 to give a 10, and that reduces your work by half :wink: Now, the total number of 5's in any given number will be equal to the number of times it can be divided by 5. But, there are some terms which have two 5's, meaning they are multiples of 25. Here you need not count the one's you already got due to division by 5. Next would be 5*5*5, that's 125 and so on. Hope this gives you an idea.
 
Kartik. said:
Question- How many zeros are there in the product of all the natural numbers right from 1 to 1962 or in short in 1962! ?

Attempt-
Well,
The product as a product of prime numbers, will denoted as -
Let the product be N,

N = 2a1 . 3a2 . 5a3 . ... pax


As far as i see it we will have to count the number of 5s and 2s that occur in the product N's representation above and also the factors which will yield 5s or 2s.So by far we are concerned only to the numbers a1 and a3.And here lies my problem, how will we calculate the number of occurrences and also figure out that how many other factors will yield how many 5s or 2s ?




As the number of 2's is clearly way larger than that of 5's, all you've to do is calculate what's the highest power of

5 that divides [itex]\,\,1962!\,\,[/itex], which is given by [tex]\displaystyle{\sum_{n=1}^\infty\left[\frac{1962}{5^n}\right]}[/tex] with [itex]\,\,[x]=\,\,[/itex] the integer part of the real number x (why is this formula true and why is the above a finite sum?)


BTW, and if you're interested, the number is [itex]\,\,488 = 392+78+15+3[/itex]

DonAntonio
 

Similar threads

Replies
4
Views
7K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 29 ·
Replies
29
Views
6K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
Replies
4
Views
3K
Replies
7
Views
3K
  • · Replies 20 ·
Replies
20
Views
6K