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
Similar Kata:
Stats:
Created | Mar 17, 2017 |
Published | Mar 20, 2017 |
Warriors Trained | 3237 |
Total Skips | 125 |
Total Code Submissions | 14656 |
Total Times Completed | 1505 |
Python Completions | 988 |
JavaScript Completions | 310 |
C Completions | 143 |
C# Completions | 111 |
COBOL Completions | 3 |
Go Completions | 25 |
Total Stars | 56 |
% of votes with a positive feedback rating | 93% of 244 |
Total "Very Satisfied" Votes | 215 |
Total "Somewhat Satisfied" Votes | 24 |
Total "Not Satisfied" Votes | 5 |
Total Rank Assessments | 11 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |