|
|
A362433
|
|
The succession of the digits of the sequence remains the same when 11 is added to each term.
|
|
2
|
|
|
1, 2, 13, 24, 3, 5, 14, 16, 25, 27, 36, 38, 4, 7, 49, 15, 18, 60, 26, 29, 71, 37, 40, 8, 248, 51, 19, 259, 6, 230, 270, 17, 241, 28, 12, 82, 52, 39, 23, 9, 363, 50, 34, 20, 374, 61, 45, 31, 385, 72, 56, 42, 396, 83, 67, 53, 407, 94, 78, 64, 41, 810, 58, 97, 55
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
This is the lexicographically earliest sequence of distinct positive terms with this property.
|
|
LINKS
|
|
|
EXAMPLE
|
The values of a(n) + 11 begin:
1 + 11 = 12,
2 + 11 = 13,
13 + 11 = 24,
24 + 11 = 35,
3 + 11 = 14,
5 + 11 = 16,
14 + 11 = 25, etc.
We see that the succession of digits in the first column is the same as the succession of digits in the last column.
|
|
PROG
|
(Python)
from itertools import islice
def agen(): # generator of terms
aset, an, s = {"1"}, 2, "2"
yield 1
while True:
i = next(i for i in range(1, len(s)+1) if s[:i] not in aset and (i == len(s) or s[i] != "0"))
an = int(str(s[:i]))
s = s[i:] + str(an+11)
aset.add(str(an))
yield an
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|