OFFSET
1,1
COMMENTS
No such sequence is possible starting with a(1)<5. The sequence is finite and stops with 300, the 49th term (as the third digit of the sequence is a zero, leading to 300+0+0+0 = 300).
The lexicographically first infinite such sequence starts with 11, 13, 15, 17, 19... as it is visible here: A277268
EXAMPLE
To compute a(2), add to a(1) the 5th digit of S; so a(2) = 5+5 = 10
To compute a(3), add to a(2) the 1st digit of S and the 0th digit of S; so a(3) = 10+5+0 = 15
To compute a(4), add to a(3) the 1st digit of S and the 5th digit of S; so a(4) = 15+5+5 = 25
To compute a(5), add to a(4) the 2nd digit of S and the 5th digit of S; so a(5) = 25+1+5 = 31
To compute a(6), add to a(5) the 3rd digit of S and the 1st digit of S; so a(6) = 31+0+5 = 36
Etc.
The sequence stops with a(49) = 300 as the next term will be also 300, which is forbidden.
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
Eric Angelini and Jean-Marc Falcoz, Nov 07 2016
STATUS
approved