login
A275845
Permutation of natural numbers: a(0) = 0, a(A153880(n)) = A255411(n), a(A273670(n)) = A256450(a(n)).
5
0, 1, 4, 2, 6, 3, 12, 8, 16, 5, 15, 10, 18, 21, 22, 7, 20, 13, 24, 27, 28, 9, 26, 17, 48, 30, 52, 33, 34, 11, 60, 32, 64, 23, 56, 36, 66, 61, 70, 39, 40, 14, 73, 38, 78, 29, 67, 42, 72, 80, 76, 74, 85, 45, 84, 46, 88, 19, 89, 44, 90, 97, 94, 35, 81, 49, 87, 99, 93, 91, 105, 53, 96, 104, 100, 54, 109, 25, 108, 110, 112, 51, 111, 121, 114, 117, 118, 41
OFFSET
0,3
FORMULA
a(0) = 0; for n >= 1: if A257680(A225901(n)) = 0 [when n is one of the terms of A153880] then a(n) = A255411(A266193(n)), otherwise [when n is one of the terms of A273670], a(n) = A256450(a(A273663(n))).
Other identities:
a(A000142(n)) = A052849(n) for all n >= 2.
PROG
(Scheme, with memoization-macro definec)
(definec (A275845 n) (cond ((zero? n) n) ((zero? (A257680 (A225901 n))) (A255411 (A266193 n))) (else (A256450 (A275845 (A273663 n))))))
CROSSREFS
Inverse: A275846.
Similar permutations: A273667 (a more recursed variant), A275847, A275848.
Sequence in context: A097467 A169839 A308712 * A281978 A325887 A209877
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Aug 13 2016
STATUS
approved