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.

A212444 Iterates A212439, starting from 0.

Original entry on oeis.org

0, 1, 3, 6, 13, 27, 54, 108, 216, 433, 867, 1734, 3469, 6939, 13878, 27756, 55512, 111025, 222050, 444101, 888202, 1776404, 3552808, 7105617, 14211235, 28422470, 56844941, 113689883, 227379766, 454759532, 909519064, 1819038129, 3638076259, 7276152518
Offset: 0

Views

Author

Reinhard Zumkeller, May 17 2012

Keywords

Crossrefs

Programs

  • Haskell
    a212444 n = a212444_list !! n
    a212444_list = iterate a212439 0
  • Mathematica
    f[n_, e_] := Module[{d = IntegerDigits[n, 2^e]}, Length[Split[d][[-1]]] - If[SameQ @@ d && Mod[n, 2^e] < 2^(e - 1), 1, 0]]; s[n_] := 2*n + Mod[Max[Table[f[n, e], {e, Range[Max[1, Floor[Log2[n]]]]}]], 2]; s[0] = 1; NestList[s, 0, 33] (* Amiram Eldar, Apr 08 2025 *)

Formula

a(n+1) = A212439(a(n)) = 2*a(n) + A181935(a(n)) mod 2, a(0) = 0.
2*a(n) <= a(n+1) <= 2*a(n) + 1.