A360415 a(n) is the greatest number k not yet in the sequence such that A065361(n) = A065361(k).
0, 1, 3, 2, 4, 9, 6, 10, 12, 5, 7, 11, 8, 13, 27, 18, 28, 30, 15, 19, 29, 21, 31, 36, 33, 37, 39, 14, 16, 20, 17, 22, 32, 24, 34, 38, 23, 25, 35, 26, 40, 81, 54, 82, 84, 45, 55, 83, 57, 85, 90, 87, 91, 93, 42, 46, 56, 48, 58, 86, 63, 88, 92, 60, 64, 89, 66, 94
Offset: 0
Examples
There are four numbers k such that A065361(k) = 8: 14, 15, 18, 27, - so a(14) = 27, a(15) = 18, a(18) = 15, a(27) = 14.
Links
- Rémy Sigrist, Table of n, a(n) for n = 0..9841
- Rémy Sigrist, PARI program
- Index entries for sequences that are permutations of the natural numbers
Programs
-
PARI
See Links section.
Comments