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.

A186192 First digit of pentanacci numbers A000322.

Original entry on oeis.org

1, 1, 1, 1, 1, 5, 9, 1, 3, 6, 1, 2, 4, 9, 1, 3, 7, 1, 2, 5, 1, 2, 4, 8, 1, 3, 6, 1, 2, 4, 9, 1, 3, 7, 1, 2, 5, 1, 2, 4, 8, 1, 3, 6, 1, 2, 4, 9, 1, 3, 7, 1, 2, 5, 1, 2, 4, 8, 1, 3, 6, 1, 2, 4, 9, 1, 3, 6, 1, 2, 5, 1, 2, 4, 7, 1, 3, 6, 1, 2, 4, 8, 1, 3, 6, 1, 2, 5, 1, 2, 3, 7, 1, 2, 5, 1, 2, 4, 8, 1, 3, 6, 1, 2, 5
Offset: 1

Views

Author

Carmine Suriano, Feb 14 2011

Keywords

Comments

Sequence obeys Benford law about distribution of first digits in a sequence P(n)=Log(1+1/n).

Examples

			a(15)=1 since Penta(15)=1921.
		

Crossrefs

Cf. A000322.

Programs

  • Mathematica
    t = {1, 1, 1, 1, 1}; Do[AppendTo[t, t[[-1]] + t[[-2]] + t[[-3]] + t[[-4]] + t[[-5]]], {100}]; Table[IntegerDigits[i][[1]], {i, t}]
    First[IntegerDigits[#]]&/@LinearRecurrence[{1,1,1,1,1},{1,1,1,1,1},110] (* Harvey P. Dale, Mar 28 2013 *)