[go: up one dir, main page]

login
A297166
Permutation of nonnegative integers: a(n) = A005940(A156552(n)), a(1) = 0.
4
0, 1, 2, 3, 4, 5, 8, 9, 6, 7, 16, 15, 32, 11, 10, 27, 64, 25, 128, 21, 14, 13, 256, 45, 12, 17, 18, 33, 512, 35, 1024, 81, 22, 19, 20, 75, 2048, 23, 26, 63, 4096, 55, 8192, 39, 30, 29, 16384, 135, 24, 49, 34, 51, 32768, 125, 28, 99, 38, 31, 65536, 105, 131072, 37, 42, 243, 44, 65, 262144, 57, 46, 77, 524288, 225, 1048576, 41, 50, 69, 40, 85
OFFSET
1,3
COMMENTS
Note the indexing: although the domain starts from 1, the range includes also zero.
FORMULA
a(1) = 0; for n > 1, a(n) = A005940(A156552(n)).
PROG
(Scheme) (define (A297166 n) (if (= 1 n) 0 (A005940 (A156552 n))))
CROSSREFS
Inverse: A297165.
Cf. also A297164.
Sequence in context: A361858 A181694 A364919 * A297163 A319024 A039260
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 05 2018
STATUS
approved