The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A261018 First differences of A260273. 6
2, 2, 3, 3, 4, 2, 3, 3, 4, 4, 2, 3, 3, 5, 7, 5, 5, 4, 3, 3, 5, 5, 3, 3, 4, 4, 4, 5, 7, 4, 5, 5, 4, 3, 3, 5, 5, 3, 3, 6, 8, 3, 3, 4, 4, 7, 4, 4, 5, 5, 5, 7, 7, 4, 5, 9, 5, 4, 4, 4, 3, 3, 3, 6, 3, 3, 6, 9, 5, 6, 5, 7, 8, 3, 3, 6, 3, 3, 4, 4, 4, 7, 4, 4, 8, 4, 4, 5, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(n) = A261461(A260273(n)). - Reinhard Zumkeller, Aug 30 2015
LINKS
MATHEMATICA
b[1] = 1;
b[n_] := b[n] = Module[{bits, k}, bits = IntegerDigits[b[n-1], 2]; For[k = 1, True, k++, If[SequencePosition[bits, IntegerDigits[k, 2]] == {}, Return[b[n-1] + k]]]];
a[n_] := b[n+1] - b[n];
Array[a, 100] (* Jean-François Alcover, Aug 02 2018 *)
PROG
(Python)
A261018_list, a = [], 1
for i in range(10**3):
b, s = 1, format(a, 'b')
while format(b, 'b') in s:
b += 1
a += b
s = format(a, 'b')
A261018_list.append(b) # Chai Wah Wu, Aug 26 2015
(Haskell)
a261018 n = a261018_list !! (n-1)
a261018_list = zipWith (-) (tail a260273_list) a260273_list
-- Reinhard Zumkeller, Aug 30 2015
CROSSREFS
Cf. A260273.
Sequence in context: A085561 A260651 A116370 * A339970 A106486 A195743
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Aug 17 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 19 14:10 EDT 2024. Contains 372697 sequences. (Running on oeis4.)