OFFSET
0,3
COMMENTS
This sequence is a self-inverse permutation of the nonnegative integers.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
Rémy Sigrist, Scatterplot of (n, a(n)) such that n, a(n) <= 2^18
Rémy Sigrist, PARI program for A335615
EXAMPLE
The first terms, alongside the corresponding squares, are:
n a(n) n AND a(n)
-- ---- ----------
0 0 0^2
1 1 1^2
2 4 0^2
3 5 1^2
4 2 0^2
5 3 1^2
6 8 0^2
7 9 1^2
8 6 0^2
9 7 1^2
10 16 0^2
11 13 3^2
12 17 0^2
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Oct 30 2020
STATUS
approved