OFFSET
0,5
COMMENTS
The value 0 appears twice; for any v > 0, the value v appears A001316(v) times.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
Rémy Sigrist, PARI program
EXAMPLE
The first terms, alongside the corresponding pairs, are:
n a(n) (a(n) AND a(n+1), a(n+1))
-- ---- -------------------------
0 0 (0, 0)
1 0 (0, 1)
2 1 (1, 1)
3 1 (0, 2)
4 2 (2, 2)
5 2 (2, 3)
6 3 (3, 3)
7 3 (0, 4)
8 4 (0, 3)
9 3 (1, 5)
10 5 (1, 3)
11 3 (2, 6)
12 6 (4, 4)
13 4 (4, 5)
14 5 (5, 5)
15 5 (4, 6)
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jul 30 2024
STATUS
approved