login
This site is supported by donations to The OEIS Foundation.

 

Logo

Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing.
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A257733 Permutation of natural numbers: a(1) = 1, a(ludic(n)) = lucky(1+a(n-1)), a(nonludic(n)) = unlucky(a(n)), where ludic(n) = n-th ludic number A003309, nonludic(n) = n-th nonludic number A192607 and lucky = A000959, unlucky = A050505. 4
1, 3, 9, 2, 33, 5, 7, 14, 4, 45, 163, 8, 15, 11, 20, 6, 25, 59, 203, 12, 22, 17, 63, 28, 13, 10, 35, 78, 235, 251, 18, 30, 24, 83, 39, 19, 1093, 16, 47, 101, 31, 290, 67, 309, 26, 41, 43, 34, 107, 53, 27, 1283, 87, 23, 61, 128, 42, 354, 88, 376, 21, 36, 55, 57, 46, 137, 115, 70, 38, 1499, 321, 112, 32, 81, 161, 56, 1401, 430, 113, 454, 29, 48, 49 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Antti Karttunen, Table of n, a(n) for n = 1..8587

Index entries for sequences that are permutations of the natural numbers

FORMULA

a(1) = 1; for n > 1: if A192490(n) = 1 [i.e., if n is ludic], then a(n) = A000959(1+a(A192512(n)-1)), otherwise a(n) = A050505(a(A236863(n))).

As a composition of other permutations:

a(n) = A257731(A255422(n)).

a(n) = A257726(A237427(n)).

PROG

(Scheme, with memoization-macro definec)

(definec (A257733 n) (cond ((= 1 n) n) ((= 1 (A192490 n)) (A000959 (+ 1 (A257733 (+ -1 (A192512 n)))))) (else (A050505 (A257733 (A236863 n))))))

;; Alternatively, by composing other permutations:

(define (A257733 n) (A257731 (A255422 n)))

(define (A257733 n) (A257726 (A237427 n)))

CROSSREFS

Inverse: A257734.

Cf. A000959, A050505, A003309, A192607, A192490, A192512, A236863.

Related or similar permutations: A237427, A255422, A257726, A257731.

Cf. also A256486, A256487.

Differs from A257731 for the first time at n=19, where a(19) = 203, while A257731(19) = 63.

Sequence in context: A303941 A176885 A257731 * A098323 A225460 A305274

Adjacent sequences:  A257730 A257731 A257732 * A257734 A257735 A257736

KEYWORD

nonn,look

AUTHOR

Antti Karttunen, May 06 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 December 9 03:27 EST 2019. Contains 329872 sequences. (Running on oeis4.)