OFFSET
0,3
COMMENTS
Leading zeros for positive integers are ignored.
This sequence is a self-inverse permutation of the nonnegative integers.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..9110
Rémy Sigrist, Log-log scatterplot of the sequence for n = 0..9111110
Rémy Sigrist, PARI program
FORMULA
EXAMPLE
Some terms alongside the corresponding even and odd digits are:
n a(n) even odd
--- ---- ----- -----
0 1 0 1
1 0 0 1
2 3 2 3
3 2 2 3
4 5 4 5
5 4 4 5
6 7 6 7
7 6 6 7
8 9 8 9
9 8 8 9
10 10 00 11
11 20 20 11
12 12 22 11
13 22 22 13
14 14 44 11
... ... ... ...
90 90 00 99
91 1000 000 911
92 92 22 99
93 1002 002 931
94 94 44 99
95 1004 004 951
96 96 66 99
97 1006 006 971
98 98 88 99
99 1008 008 991
100 101 000 111
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jul 05 2022
STATUS
approved