login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A261165 List run lengths of digits different from '5', when all terms are concatenated. Lexicographically first such sequence of nonnegative numbers with no repeated terms. 2
1, 5, 0, 2, 3, 4, 6, 55, 7, 8, 50, 9, 15, 10, 11, 51, 12, 13, 25, 14, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 36, 37, 38, 39, 40, 41, 42, 43, 35, 44, 46, 47, 45, 48, 49, 60, 61, 52, 62, 63, 64, 66, 67, 68, 69, 70, 71, 72, 73, 74, 76, 77, 78, 79, 80, 81, 82, 83, 84, 86, 87, 88, 65 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

See A261161 - A261163 for comments and examples.

LINKS

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

E. Angelini, To reach the next "1", SeqFan list, August 10, 2015.

PROG

(PARI) A261165(n=99, d=5, a=1, p=0, u=[-1], r=u)={for(n=2, n, print1(a", "); p+=#digits(a)+!a; r=concat(r, r[#r]+a+1); while(#r>1&&r[1]<p, r=r[2..-1]); u=setunion(u, [a]); while(#u>1&&u[2]==u[1]+1, u=u[2..-1]); for(k=u[1]+1, 9e9, setsearch(u, k)&&next; if(r[1] >= p+#dk=if(k, digits(k), [0]), setsearch(Set(dk), d)&&next, for(i=1, #dk, (dk[i]==d)==!setsearch(r, p+i-1)&&next(2))); a=k; next(2)); error); a}

CROSSREFS

Cf. A261160 - A261164, A261166 - A261169.

Sequence in context: A062950 A172035 A019625 * A222597 A021999 A021203

Adjacent sequences:  A261162 A261163 A261164 * A261166 A261167 A261168

KEYWORD

nonn,base

AUTHOR

Eric Angelini and M. F. Hasler, Aug 10 2015

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 1 17:45 EDT 2020. Contains 337444 sequences. (Running on oeis4.)