
1, 2, 3, 4, 5, 6, 9, 7, 8, 10, 17, 11, 33, 18, 12, 13, 65, 14, 129, 19, 20, 34, 257, 21, 15, 66, 16, 35, 513, 22, 1025, 23, 36, 130, 24, 25, 2049, 258, 67, 37, 4097, 38, 8193, 68, 26, 514, 16385, 39, 27, 28, 131, 132, 32769, 29, 40, 69, 259, 1026, 65537, 41
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,2


COMMENTS

Permutation of the natural numbers A000027 with fixed points 1, 2, 3, 4, 5, 6, 10, ... and inverse permutation A332977 (with offset 1).


LINKS

Alois P. Heinz, Table of n, a(n) for n = 1..20000
Index entries for sequences that are permutations of the natural numbers


FORMULA

a(p) = 1 + 2^(pi(p)1) = A094373(A000720(p)) for prime p.


CROSSREFS

Cf. A000027, A000040, A000720 (pi), A094373, A332977.
Sequence in context: A029964 A275583 A295088 * A257815 A141655 A174349
Adjacent sequences: A332987 A332988 A332989 * A332991 A332992 A332993


KEYWORD

nonn


AUTHOR

Alois P. Heinz, Mar 05 2020


STATUS

approved

