OFFSET
0,4
COMMENTS
The condition "with as many distinct values as possible" means here that for any distinct m and n, provided the orbits of m and n under the map x -> rev(x) do not merge, then a(m) <> a(n).
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..8191
Rémy Sigrist, Colored scatterplot of the first 2^16 terms (where the color is function of A007814(n), the 2-adic valuation of n)
Rémy Sigrist, PARI program for A340717
FORMULA
EXAMPLE
The first terms, alongside rev(n), are:
n a(n) rev(n)
-- ---- ------
0 0 0
1 1 1
2 1 1
3 2 3
4 1 1
5 3 5
6 2 3
7 4 7
8 1 1
9 5 9
10 3 5
11 6 13
12 2 3
13 6 11
14 4 7
15 7 15
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Jan 17 2021
STATUS
approved