OFFSET
0,9
COMMENTS
In other words, a(n) gives the number of geometric progressions (a(n-1-2*k), a(n-1-k), a(n-1)) of the form (x, x*y, x*y^2) or (x*y^2, x*y, x) with x, y >= 0.
This sequence has similarities with A308638: here we count geometric progressions, there arithmetic progressions.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
Rémy Sigrist, Scatterplot of the first 250000 terms
Rémy Sigrist, C program
EXAMPLE
The first terms, alongside the corresponding k's, are:
n a(n) k's
-- ---- ------
0 0 {}
1 0 {}
2 0 {}
3 1 {1}
4 1 {1}
5 1 {2}
6 1 {1}
7 1 {1}
8 2 {1, 2}
9 0 {}
10 0 {}
11 1 {1}
12 2 {1, 4}
13 0 {}
14 2 {3, 4}
PROG
(C) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Jan 16 2023
STATUS
approved