[go: up one dir, main page]

login
Revision History for A247945 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Lexicographically earliest permutation of the positive integers such that a(n) contains the a(n)-th digit of the sequence, for all n.
(history; published version)
#11 by N. J. A. Sloane at Mon Jan 02 12:30:50 EST 2023
LINKS

M. F. Hasler in reply to E. Angelini, <a href="http://list.seqfan.eu/pipermailoldermail/seqfan/2014-September/013697.html">The a(n)th digit of the sequence is visible in a(n)</a>, SeqFan list, Sep 27 2014

Discussion
Mon Jan 02
12:30
OEIS Server: https://oeis.org/edit/global/2957
#10 by N. J. A. Sloane at Sat Apr 04 21:49:04 EDT 2015
NAME

Lexicographically smallest earliest permutation of the positive integers such that a(n) contains the a(n)-th digit of the sequence, for all n.

Discussion
Sat Apr 04
21:49
OEIS Server: https://oeis.org/edit/global/2398
#9 by Jon E. Schoenfield at Sat Mar 14 01:01:00 EDT 2015
STATUS

editing

approved

#8 by Jon E. Schoenfield at Sat Mar 14 01:00:59 EDT 2015
PROG

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

#7 by Jon E. Schoenfield at Sat Mar 14 01:00:52 EDT 2015
EXAMPLE

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

STATUS

approved

editing

#6 by Bruno Berselli at Thu Oct 02 05:37:20 EDT 2014
STATUS

proposed

approved

#5 by M. F. Hasler at Sat Sep 27 10:40:48 EDT 2014
STATUS

editing

proposed

#4 by M. F. Hasler at Sat Sep 27 10:40:45 EDT 2014
NAME

Lexicographically smallest permutation of the positive integers such that a(n) contains the a(n)-th digit of the sequence, for all n.

EXAMPLE

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

#3 by M. F. Hasler at Sat Sep 27 10:37:03 EDT 2014
DATA

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, 74, 90, 52, 35, 56, 58, 50, 121, 65, 118, 101, 117, 57, 78, 70, 123, 85, 87, 110, 92, 94, 96, 79, 100, 200

LINKS

M. F. Hasler in reply to E. Angelini, <a href="http://list.seqfan.eu/pipermail/seqfan/2014-September/013697.html">The a(n)th digit of the sequence is visible in a(n)</a>, SeqFan list, Sep 27 2014

EXAMPLE

See the link.

PROG

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

d=concat(d, digits(k)); u+=1<<L=k; print_all&&print1(k", "); next(2break)); error)L} \\ Prints the sequence but returns nothing. - M. F. Hasler, Sep 27 2014

#2 by M. F. Hasler at Sat Sep 27 10:13:54 EDT 2014
NAME

allocated for M. F. Hasler

Lexicographically smallest permutation of the positive integers such that a(n) contains the a(n)-th digit of the sequence.

DATA

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, 74, 90, 52, 35, 56, 58, 50, 121, 65, 118, 101, 117, 57, 78, 70, 123, 85, 87, 110, 92, 94, 96, 79, 100, 200

OFFSET

1,2

PROG

(PARI) S(nMax, d=[], u=0)={for(n=1, nMax, 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<<k; print1(k", "); next(2)); error)} \\ Prints the sequence but returns nothing. - M. F. Hasler, Sep 27 2014

KEYWORD

allocated

nonn,base

AUTHOR

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

STATUS

approved

editing