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.

A154760 Final digit of n!! (A006882).

Original entry on oeis.org

1, 1, 2, 3, 8, 5, 8, 5, 4, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0
Offset: 0

Views

Author

Kousaka Hideaki (kousaka(AT)d6.dion.ne.jp), Jan 15 2009

Keywords

Comments

For n>8: a(n)=0 if n is even, a(n)=5 if n is odd. - Dmitry Kamenetsky, Jan 17 2009

Examples

			The final digit of n! is 1,2,6,4,0,0,0,0,0,0,0,0,0,...
		

Programs

  • Mathematica
    Join[Mod[Range[0,8]!!,10],PadRight[{},120,{5,0}]] (* Harvey P. Dale, Dec 16 2023 *)

Extensions

Offset corrected, more terms added by R. J. Mathar, Jan 18 2009