A235487 Self-inverse and multiplicative permutation of integers: For n < 7, a(n)=n, a(7)=8 and a(8)=7, a(p_i) = p_{a(i)} for primes with index i <> 4, and for composites > 8, a(u*v) = a(u) * a(v).
0, 1, 2, 3, 4, 5, 6, 8, 7, 9, 10, 11, 12, 13, 16, 15, 14, 19, 18, 17, 20, 24, 22, 23, 21, 25, 26, 27, 32, 29, 30, 31, 28, 33, 38, 40, 36, 37, 34, 39, 35, 41, 48, 53, 44, 45, 46, 47, 42, 64, 50, 57, 52, 43, 54, 55, 56, 51, 58, 67, 60, 61, 62, 72, 49, 65, 66, 59, 76, 69, 80, 71, 63, 89, 74, 75, 68, 88, 78, 79, 70, 81
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(p_i) = p_{a(i)} for primes with index i <> 4, a(7) = 8, a(2^(3k)) = 7^k, a(2^(3k+1)) = 2*7^k, a(2^(3k+2)) = 4*7^k, and for other composites, a(u * v) = a(u) * a(v).
Comments