login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A275848
Permutation of natural numbers: a(0) = 0, a(A255411(n)) = A153880(a(n)), a(A256450(n)) = A273670(n).
7
0, 1, 3, 4, 2, 5, 7, 9, 10, 11, 13, 15, 8, 16, 17, 18, 12, 19, 6, 20, 21, 22, 14, 23, 25, 27, 28, 29, 31, 33, 34, 35, 37, 39, 40, 41, 42, 43, 44, 45, 46, 47, 49, 51, 52, 53, 55, 57, 26, 58, 59, 61, 32, 63, 64, 65, 66, 67, 68, 69, 36, 70, 71, 73, 38, 75, 50, 76, 77, 79, 56, 81, 30, 82, 83, 85, 60, 87, 88, 89, 90, 91, 92, 93, 62, 94, 95, 96, 72, 97, 48
OFFSET
0,3
FORMULA
a(0) = 0; for n >= 1: if A257680(n) = 0 [when n is one of the terms of A255411] then a(n) = A153880(a(A257684(n))), otherwise [when n is one of the terms of A256450], a(n) = A273670(A273662(n)).
PROG
(Scheme, with memoization-macro definec)
(definec (A275848 n) (cond ((zero? n) n) ((zero? (A257680 n)) (A153880 (A275848 (A257684 n)))) (else (A273670 (A273662 n)))))
CROSSREFS
Inverse: A275847.
Similar permutations: A273668 (a more recursed variant), A275845, A275846.
Sequence in context: A297969 A127296 A276958 * A367651 A214929 A205152
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Aug 13 2016
STATUS
approved