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!)
A247945 Lexicographically earliest permutation of the positive integers such that a(n) contains the a(n)-th digit of the sequence, for all n. 0
1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 15, 17, 19, 21, 22, 25, 27, 29, 31, 23, 33, 37, 39, 41, 24, 44, 47, 49, 51, 53, 45, 55, 59, 61, 26, 46, 66, 69, 71, 73, 75, 67, 77, 81, 28, 48, 68, 88, 91, 93, 95, 97, 89, 10, 20, 40, 60, 80, 111, 14, 16, 18, 12, 112, 42, 62, 82, 113, 34, 36, 38, 30, 114, 116 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

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

M. F. Hasler in reply to E. Angelini, The a(n)th digit of the sequence is visible in a(n), SeqFan list, Sep 27 2014

EXAMPLE

See the link.

a(10) cannot be 10 because in that case, the 11th digit would be "0" which does not occur in the number "11", so this number could appear nowhere else in the sequence.

PROG

(PARI) a(n, print_all=0, d=[], u=0, L)={for(n=1, n, for(k=1, 9e9, bittest(u, k)&&next;

for(j=1, #dk=digits(k), setsearch(Set(digits(#d+j)), dk[j])||next(2));

d=concat(d, digits(k)); u+=1<<L=k; print_all&&print1(k", "); break)); L} \\ M. F. Hasler, Sep 27 2014

CROSSREFS

Sequence in context: A061383 A059708 A306520 * A317621 A298297 A331009

Adjacent sequences:  A247942 A247943 A247944 * A247946 A247947 A247948

KEYWORD

nonn,base

AUTHOR

Eric Angelini and M. F. Hasler, Sep 27 2014

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 June 24 18:46 EDT 2021. Contains 345419 sequences. (Running on oeis4.)