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.

A162501 Lexicographically earliest permutation of the natural numbers such that in decimal representation the initial digit for each term is equal to the last nonzero digit of its predecessor; a(1)=1.

Original entry on oeis.org

1, 10, 11, 12, 2, 20, 21, 13, 3, 30, 31, 14, 4, 40, 41, 15, 5, 50, 51, 16, 6, 60, 61, 17, 7, 70, 71, 18, 8, 80, 81, 19, 9, 90, 91, 100, 101, 102, 22, 23, 32, 24, 42, 25, 52, 26, 62, 27, 72, 28, 82, 29, 92, 200, 201, 103, 33, 34, 43, 35, 53, 36, 63, 37, 73, 38, 83, 39, 93, 300, 301
Offset: 1

Views

Author

Reinhard Zumkeller, Jul 05 2009

Keywords

Comments

A000030(a(n+1)) = A065881(a(n));
inverse of A162502: a(A162502(n)) = A162502(a(n)) = n;
a(a(n)) = A162503(n).

Crossrefs