login
A360434
a(n) is the greatest number k not yet in the sequence such that A022290(n) = A022290(k).
2
0, 1, 2, 4, 3, 5, 8, 9, 6, 7, 10, 16, 12, 17, 18, 20, 11, 13, 14, 19, 15, 21, 32, 33, 24, 25, 34, 36, 35, 37, 40, 41, 22, 23, 26, 28, 27, 29, 38, 39, 30, 31, 42, 64, 48, 65, 66, 68, 44, 49, 50, 67, 52, 69, 72, 73, 70, 71, 74, 80, 76, 81, 82, 84, 43, 45, 46, 51
OFFSET
0,3
COMMENTS
This sequence is a self-inverse permutation of the nonnegative integers.
FORMULA
a(A345101(n, k)) = A345101(n, A000119(n) + 1 - k).
a(A003754(n+1)) = A003714(n).
a(A003714(n)) = A003754(n+1).
EXAMPLE
There are three numbers k such that A022290(k) = 11: 15, 19, 20,
- so a(15) = 20,
a(19) = 19,
a(20) = 15.
PROG
(PARI) See Links section.
CROSSREFS
See A360415 for a similar sequence.
Sequence in context: A279343 A222599 A249683 * A215898 A246162 A243573
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Feb 07 2023
STATUS
approved