OFFSET
1,1
COMMENTS
This sequence is a self-inverse permutation of the positive integers.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, PARI program
EXAMPLE
The first terms, alongside the corresponding initial digits, are:
n a(n) A30(n) A30(a(n))
-- ---- ------ ---------
1 2 1 2
2 1 2 1
3 4 3 4
4 3 4 3
5 6 5 6
6 5 6 5
7 8 7 8
8 7 8 7
9 10 9 1
10 9 1 9
11 20 1 2
12 21 1 2
13 22 1 2
14 23 1 2
15 24 1 2
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Rémy Sigrist, Aug 26 2024
STATUS
approved