login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A210419
List the positions of all digits 5 in the concatenation of all terms, not necessarily in order. This is the lexicographically earliest such sequence.
8
2, 5, 4, 55, 7, 50, 11, 51, 15, 52, 14, 21, 53, 25, 54, 24, 31, 56, 35, 57, 34, 41, 58, 45, 59, 44, 65, 555, 5555, 550, 63, 505, 68, 500, 73, 501, 78, 502, 83, 503, 88, 504, 93, 506, 98, 507, 104, 508, 110, 509, 115, 119, 510, 125, 511, 124, 134, 512, 140, 513
OFFSET
1,1
COMMENTS
See A210415 for comments, links, and code.
LINKS
EXAMPLE
The sequence cannot start with 1 because the first digit is not 5. Let us start with 2: the second digit is equal to 5. The third digit cannot be 3 because the third digit is not 5. So let it be 4. The next term must begin with a 5 because 4 is already in the sequence. Since 5 is also a previous term, it must be 55. With 2,4,5 already used, and 1,3,6 pointing at digits that are not 5, the next term must be 7.
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava, Mar 26 2012
EXTENSIONS
a(5)-a(90) corrected by Danny Rorabaugh, Nov 27 2015
STATUS
approved