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.

A228723 Smallest number not less than n with alternating parities of digits in decimal representation.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 12, 14, 14, 16, 16, 18, 18, 21, 21, 21, 23, 23, 25, 25, 27, 27, 29, 29, 30, 32, 32, 34, 34, 36, 36, 38, 38, 41, 41, 41, 43, 43, 45, 45, 47, 47, 49, 49, 50, 52, 52, 54, 54, 56, 56, 58, 58, 61, 61, 61, 63, 63, 65, 65, 67
Offset: 0

Views

Author

Reinhard Zumkeller, Aug 31 2013

Keywords

Comments

A228722(n) <= n <= a(n) and A228710(a(n)) = 1;
a(A030141(n)) = A030141(n); a(A228709(n)) > A228709(n).
lim sup a(n)/n = 2080/1881. - Charles R Greathouse IV, Sep 12 2013

Examples

			a(100) = 101; a(1000) = 1010; a(10000) = 10101; a(100000) = 101010;
a(101) = 101; a(1001) = 1010.
		

Programs

  • Haskell
    a228723 n = head [x | x <- [n..], a228710 x == 1]