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.

A044836 Positive integers having more base-10 runs of even length than odd.

Original entry on oeis.org

11, 22, 33, 44, 55, 66, 77, 88, 99, 1100, 1111, 1122, 1133, 1144, 1155, 1166, 1177, 1188, 1199, 2200, 2211, 2222, 2233, 2244, 2255, 2266, 2277, 2288, 2299, 3300, 3311, 3322, 3333, 3344, 3355, 3366, 3377, 3388, 3399, 4400
Offset: 1

Views

Author

Keywords

Crossrefs

Number of even/odd runs: A044941, A044950. Cf. A044851 (no fewer), A044866 (same number).
Cf. A044828 (binary analog), A338754.

Programs

  • PARI
    is(n,base=10) = { my (v=0); while (n, my (d=n%base, w=0); while (n%base==d, n\=base; w++); v+=(-1)^w); v>0 } \\ Rémy Sigrist, Nov 07 2020

Extensions

Incorrect formula removed by Rémy Sigrist, Nov 07 2020