OFFSET
1,3
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..9999
Rémy Sigrist, Colored scatterplot of (a(n), a(n+1)) for n < 2^18 (where the hue is function of n)
Rémy Sigrist, C++ program
EXAMPLE
The first terms, alongside their binary expansion and {a(n), a(n+1)}, are:
n a(n) bin(a(n)) {a(n), a(n+1)}
-- ---- --------- --------------
1 1 1 {1}
2 1 1 {1, 3}
3 3 11 {2, 3}
4 2 10 {2}
5 2 10 {2, 6}
6 6 110 {3, 6}
7 3 11 {3}
8 3 11 {3, 5}
9 5 101 {1, 5}
10 1 1 {1, 7}
11 7 111 {2, 7}
12 2 10 {2, 10}
13 10 1010 {3, 10}
14 3 11 {3, 7}
15 7 111 {4, 7}
PROG
(C++) See Links section.
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Apr 05 2022
STATUS
approved