6 kyu

Jungerstein's Math Training Room: 1. How many zeros are at the end of n!! ?

988 of 1,505jungerstein

Description:

Define n!! as

n!! = 1 * 3 * 5 * ... * n if n is odd,

n!! = 2 * 4 * 6 * ... * n if n is even.

Hence 8!! = 2 * 4 * 6 * 8 = 384, there is no zero at the end. 30!! has 3 zeros at the end.

For a positive integer n, please count how many zeros are there at the end of n!!.

Example:

30!! = 2 * 4 * 6 * 8 * 10 * ... * 22 * 24 * 26 * 28 * 30 
30!! = 42849873690624000 (3 zeros at the end)
Puzzles
Mathematics
Number Theory
Discrete Mathematics

Stats:

CreatedMar 17, 2017
PublishedMar 20, 2017
Warriors Trained3237
Total Skips125
Total Code Submissions14656
Total Times Completed1505
Python Completions988
JavaScript Completions310
C Completions143
C# Completions111
COBOL Completions3
Go Completions25
Total Stars56
% of votes with a positive feedback rating93% of 244
Total "Very Satisfied" Votes215
Total "Somewhat Satisfied" Votes24
Total "Not Satisfied" Votes5
Total Rank Assessments11
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • jungerstein Avatar
  • St3f4n Avatar
  • hobovsky Avatar
  • kirull Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • dfhwze Avatar
  • Just4FunCoder Avatar
  • 4500zenja1 Avatar
Ad