OFFSET
1,3
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, Scatterplot of the first 100000 terms
Rémy Sigrist, C++ program
FORMULA
a(n) <= n-1 with equality iff n belongs to A352204.
EXAMPLE
The initial values of a(n), b(n) = A109812(n), and the corresponding k's, are:
n a(n) b(n) k's
-- ---- ---- ---------------------------------------------------
1 0 1 []
2 1 2 [1]
3 2 4 [1, 2]
4 2 3 [1, 2]
5 4 8 [1, 2, 3, 4]
6 4 5 [1, 2, 3, 4]
7 6 10 [1, 2, 3, 4, 5, 6]
8 7 16 [1, 2, 3, 4, 5, 6, 7]
9 5 6 [1, 2, 3, 4, 6]
10 7 9 [1, 2, 3, 4, 5, 6, 9]
11 10 18 [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
12 9 12 [1, 2, 3, 4, 5, 6, 7, 9, 10]
13 11 17 [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12]
14 10 14 [1, 2, 3, 4, 5, 6, 7, 9, 10, 12]
15 14 32 [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
16 6 7 [1, 2, 3, 4, 6, 9]
17 15 24 [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16]
PROG
(C++) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Apr 03 2022
STATUS
approved