A331440 Let S = smallest missing positive number, adjoin S, 2*S, 4*S, 8*S, 16*S, ... to the sequence until reaching a term that has S as a substring; reset S to the smallest missing positive number, repeat.
1, 2, 4, 8, 16, 3, 6, 12, 24, 48, 96, 192, 384, 5, 10, 20, 40, 80, 160, 320, 640, 1280, 2560, 7, 14, 28, 56, 112, 224, 448, 896, 1792, 9, 18, 36, 72, 144, 288, 576, 1152, 2304, 4608, 9216, 11, 22, 44, 88, 176, 352, 704, 1408, 2816, 5632, 11264, 13, 26, 52, 104, 208, 416
Offset: 1
A331442 Length of n-th chain in A331440.
5, 8, 10, 9, 11, 11, 11, 11, 8, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 20, 16, 41, 31, 28, 28, 31, 54, 21, 9, 36, 11, 24, 23, 32, 10, 37, 42, 12, 27, 46, 16, 40, 27, 6, 19, 45, 13, 42, 42, 37, 61, 37, 98, 93, 18, 44, 33, 19, 59, 35, 54, 166, 131
Offset: 1
Examples
When starting chain 9, A331440(77) is set to the first free number which is 17, and the chain becomes 17, 34, 68, 136, 272, 544, 1088, 2176 with length 8.
Links
- Lars Blomberg, Table of n, a(n) for n = 1..3000
- Rémy Sigrist, PARI program for A331442
Programs
-
PARI
See Links section.
Extensions
Corrected a(9) and more terms from Lars Blomberg, Jan 22 2020
Comments
Examples
References
Links
Crossrefs
Programs
PARI