cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A173558 a(n) is the smallest number whose factorial has 10^n trailing zeros.

Original entry on oeis.org

5, 45, 405, 4005, 40010, 400005, 4000005, 40000010, 400000015, 4000000015, 40000000015, 400000000015, 4000000000010, 40000000000015, 400000000000020, 4000000000000025, 40000000000000025, 400000000000000025
Offset: 0

Views

Author

Keywords

Examples

			4!=24 has no zeros, and 5!=120 has 1 (10^0) zero ==> a(0)= 5.
44!=2658271574788448768043625811014615890319638528000000000 (9 zeros) and 45!=119622220865480194561963161495657715064383733760000000000 (10^1= 10 zeros) ==> a(1)=45.
		

Crossrefs

If A173292(n)> -1 then a(n)=A173292(n)

Programs

  • Mathematica
    Z10[n_] := Floor[Sum[Floor[n/5^i], {i, 1, Floor[Log[5, n]]}]]; a[n_] := Module[{m = 4*10^n}, While[Z10[m] < 10^n, m++ ]; m]; Table[a[n], {n, 0, 60}]