

A165305


a(n) is the smallest number not yet in the sequence such that the concatenation of all terms yields a periodic stream of digits 1, 2, 3, ..., 7 (repeat from 1).


3



1, 2, 3, 4, 5, 6, 7, 12, 34, 56, 71, 23, 45, 67, 123, 456, 712, 345, 671, 234, 567, 1234, 5671, 2345, 6712, 3456, 7123, 4567, 12345, 67123, 45671, 23456, 71234, 56712, 34567, 123456, 712345, 671234, 567123, 456712, 345671, 234567, 1234567
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,2


LINKS

Table of n, a(n) for n=1..43.


EXAMPLE

For a(8), having already 1, 2, 3, 4, 5, 6, 7, the next number must be 12 because after 1,2,3,4,5,6,7 we shall continue with a 1.
But 1 is already in the sequence so we need to add a 2 > 12. And so on.


CROSSREFS

Cf. A165300A165304, A165306, A165307
Sequence in context: A200446 A033079 A173819 * A125745 A265124 A032990
Adjacent sequences: A165302 A165303 A165304 * A165306 A165307 A165308


KEYWORD

easy,base,nonn


AUTHOR

Paolo P. Lava and Giorgio Balzarotti, Sep 14 2009


EXTENSIONS

Keyword base added by R. J. Mathar, Feb 02 2010


STATUS

approved



