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”).

A202521
Number of digits up to the end of the next prime in the sequence.
0
4, 1, 6, 2, 3, 8, 9, 10, 11, 13, 12, 5, 14, 15, 16, 17, 18, 20, 21, 22, 7, 24, 25, 26, 27, 19, 28, 30, 32, 33, 101, 34, 35, 36, 38, 39, 103
OFFSET
1,1
COMMENTS
Draw a vertical line after each prime in the sequence. The terms of the sequence give the number of digits between the vertical lines. This is the lexicographically earliest sequence (for the next term always use the least number not yet in the sequence not leading to a contradiction) with this property. Since this allows it to "fill up" with small numbers, the sequence is a permutation of the positive integers.
CROSSREFS
Sequence in context: A109915 A334467 A255198 * A247362 A098987 A174390
KEYWORD
nonn,base,more
AUTHOR
Eric Angelini, Dec 15 2011
STATUS
approved