A235489 Self-inverse and multiplicative permutation of integers: For n < 8, a(n) = n, a(8)=9 and a(9)=8, a(p_i) = p_{a(i)} for primes with index i, and for composites > 9, a(u*v) = a(u) * a(v).
0, 1, 2, 3, 4, 5, 6, 7, 9, 8, 10, 11, 12, 13, 14, 15, 18, 17, 16, 23, 20, 21, 22, 19, 27, 25, 26, 24, 28, 29, 30, 31, 36, 33, 34, 35, 32, 37, 46, 39, 45, 41, 42, 43, 44, 40, 38, 47, 54, 49, 50, 51, 52, 61, 48, 55, 63, 69, 58, 59, 60, 53, 62, 56, 81, 65, 66, 83, 68, 57, 70, 71, 72, 73, 74, 75, 92, 77, 78, 79, 90, 64
Offset: 0
Links
Crossrefs
List below gives similarly constructed permutations, which all force a swap of two small numbers, with (the rest of) primes permuted with the sequence itself and the new positions of composite numbers defined by the multiplicative property:
Formula
Multiplicative with a(3^(2k)) = 2^3k = 8^k, a(3^(2k+1)) = 3*2^3k, a(2^(3k)) = 3^2k = 9^k, a(2^(3k+1)) = 2*9^k, a(2^(3k+2)) = 4*9^k, a(p_i) = p_{a(i)} for primes with index i, and a(u*v) = a(u) * a(v) for composites other than 8 or 9.
Comments