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!)
A030599 Length of n-th run of digit 4 in A030588. 6
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,25
LINKS
PROG
(PARI)
up_to = 20000;
A030599list(up_to, d=4) = { my(v=vector(up_to), ds=List([]), o=1, j=1, rl=0, i=0); while(i<up_to, if(j>#ds, ds=digits(o, 6); j=1; o+=2); if(d==ds[j], rl++, if(rl, i++; v[i] = rl; rl=0)); j++); (v); };
v030599 = A030599list(up_to);
A030599(n) = v030599[n]; \\ Antti Karttunen, Dec 24 2018
CROSSREFS
Sequence in context: A171624 A032548 A030597 * A237413 A157343 A102679
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Terms corrected by Antti Karttunen, Dec 24 2018
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 April 16 17:36 EDT 2024. Contains 371749 sequences. (Running on oeis4.)