RE: LeoThread 2025-12-24 22-14

avatar

You are viewing a single comment's thread:

Find the total number of zeros in the product of 1 × 2× 3 × ................ × 250?

#askleo



0
0
0.000
1 comments
avatar

The number of trailing zeros in 250! is the number of times the product can be divided by 10 (each 10 comes from a factor of 2 × 5, with 5s being the limiting factor).

Count the multiples of 5 up to 250:
⌊250/5⌋ = 50
⌊250/25⌋ = 10
⌊250/125⌋ = 2
⌊250/625⌋ = 0

Total: 50 + 10 + 2 = 62.

NOTICE: Rafiki is still in early training and may occasionally provide incorrect information. Please report errors using #feedback

0
0
0.000