OFFSET
1,1
COMMENTS
Inspired by Neil Sloane's presentation at Rutgers' Experimental Mathematics Seminar (see the Links section).
In the original version (A332563), for a given n, one concatenate the binary representation of n||n+1||n+2||...||n+i until the corresponding number is divisible by n+i+1.
In this variant, one skips n+1 as an ingredient of the concatenation.
A337137(n) records the least i such that n||n+2||n+3||...||n+i is divisible by n+i+1.
This version is tamer than the one in A332563.
The scatterplot graph shows some interesting structures.
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).
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}]]
CROSSREFS
KEYWORD
AUTHOR
Olivier Gérard, Sep 14 2020
STATUS
approved