Back to today
Share
2026-05-02
Problem — 2026-05-02
Easy
Easy
Number theory
How many trailing zeros does
50
!
50!
50
!
have?
Enter an integer
Show solution
Trailing zeros come from factors of
10
=
2
×
5
10 = 2 \times 5
10
=
2
×
5
. Since factors of
2
2
2
are more plentiful, count factors of
5
5
5
:
⌊
50
/
5
⌋
+
⌊
50
/
25
⌋
=
10
+
2
=
12
\lfloor 50/5 \rfloor + \lfloor 50/25 \rfloor = 10 + 2 = 12
⌊
50/5
⌋
+
⌊
50/25
⌋
=
10
+
2
=
12
.