login
A275847
Permutation of natural numbers: a(0) = 0, a(A153880(n)) = A255411(a(n)), a(A273670(n)) = A256450(n).
9
0, 1, 4, 2, 3, 5, 18, 6, 12, 7, 8, 9, 16, 10, 22, 11, 13, 14, 15, 17, 19, 20, 21, 23, 96, 24, 48, 25, 26, 27, 72, 28, 52, 29, 30, 31, 60, 32, 64, 33, 34, 35, 36, 37, 38, 39, 40, 41, 90, 42, 66, 43, 44, 45, 114, 46, 70, 47, 49, 50, 76, 51, 84, 53, 54, 55, 56, 57, 58, 59, 61, 62, 88, 63, 94, 65, 67, 68, 100, 69, 108, 71, 73, 74, 112, 75, 118, 77, 78
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(a(A266193(n))), otherwise [when n is one of the terms of A273670], a(n) = A256450(A273663(n)).
PROG
(Scheme, with memoization-macro definec)
(definec (A275847 n) (cond ((zero? n) n) ((zero? (A257680 (A225901 n))) (A255411 (A275847 (A266193 n)))) (else (A256450 (A273663 n)))))
CROSSREFS
Inverse: A275848.
Similar permutations: A273667 (a more recursed variant), A275845, A275846.
Sequence in context: A226939 A123403 A276957 * A243961 A098317 A371325
KEYWORD
nonn,base,look
AUTHOR
Antti Karttunen, Aug 13 2016
STATUS
approved