login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A261168 List run lengths of digits different from '8', when all terms are concatenated. Lexicographically first such sequence of nonnegative numbers with no repeated terms. 3
1, 8, 0, 2, 3, 4, 5, 6, 7, 9, 88, 10, 80, 11, 81, 12, 18, 13, 14, 28, 15, 16, 17, 82, 19, 20, 21, 83, 22, 23, 24, 25, 84, 26, 27, 29, 30, 31, 32, 33, 34, 35, 36, 37, 39, 40, 41, 42, 43, 44, 45, 46, 47, 49, 50, 51, 52, 53, 54, 55, 56, 57, 59, 60, 61, 62, 63, 64, 65, 66, 67, 69, 70, 71, 72, 73, 38, 74, 75, 76, 77 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
See A261161-A261163 for comments and examples.
LINKS
E. Angelini, To reach the next "1", SeqFan list, August 10, 2015.
PROG
(PARI) A261168(n=99, d=8, 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
Sequence in context: A011104 A232227 A322231 * A329086 A342200 A265294
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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 10:55 EDT 2024. Contains 371241 sequences. (Running on oeis4.)