A337137 Variant of A332563 - binary version of Recamán concatenation sequence.
2, 1, 3, 3, 2, 1, 8, 4, 6, 3, 2, 3, 2, 1, 3, 15, 10, 13, 4, 3, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 8, 7, 27, 29, 28, 27, 26, 10, 24, 23, 22, 21, 20, 19, 3, 15, 14, 15, 14, 13, 12, 3, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 16, 15, 62, 13, 2, 27, 58, 16, 15, 55, 22, 2, 52, 51, 2, 36, 16, 3, 46, 33, 7, 43, 2, 5, 3, 23, 38, 33, 4, 3, 34, 33, 13, 7, 22, 29, 16, 3, 26, 22, 16, 7, 22, 17, 2, 3, 2, 17, 16, 9, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 128
Offset: 1
Links
- Olivier Gérard, Table of n, a(n) for n = 1..2048
- N. J. A. Sloane, Conant's Gasket, Recamán Variations, the Enots Wolley Sequence, and Stained Glass Windows, Experimental Math Seminar, Rutgers University, Sep 10 2020 (video of Zoom talk).
Programs
-
Mathematica
Module[{s, i, imax = 128}, Table[ s = IntegerDigits[n, 2]; i = 0; While[Mod[FromDigits[s, 2], n + i + 1] > 0 && i <= imax, i = i + 1; s = Join[s, IntegerDigits[n + i + 1, 2]]]; i /. {imax + 1 -> Infinity} , {n, 1, 127}]]
Comments