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.

A136702 Final nonzero digit of n! in base 16.

Original entry on oeis.org

1, 1, 2, 6, 8, 8, 13, 11, 8, 8, 15, 5, 12, 12, 8, 8, 8, 8, 3, 9, 4, 4, 8, 8, 12, 12, 8, 8, 14, 6, 4, 12, 8, 8, 11, 1, 4, 4, 8, 8, 4, 4, 8, 8, 2, 10, 12, 4, 12, 12, 8, 8, 2, 10, 12, 4, 14, 14, 12, 4, 7, 11, 10, 6, 8, 8, 11, 1, 4, 4, 8, 8, 4, 4, 8, 8, 10, 2, 12, 4, 4, 4, 8, 8, 6, 14, 4, 12, 2, 2, 4, 12
Offset: 0

Views

Author

Carl R. White, Jan 16 2008

Keywords

Examples

			6! = 720 decimal = 2D0 hexadecimal, so a(6) = 13.
		

Crossrefs

Programs

  • PARI
    a(n) = {d = digits(n!, 16); k = #d; while (!d[k] && (k!=1), k--); d[k];} \\ Michel Marcus, Sep 21 2016