OFFSET
1,3
COMMENTS
If strongly smoothened, this sequence displays growth. This growth appears to be caused by the number of groups which is increasing by growing length of the sequence roughly proportional to n^(1/2). But the length of the groups appears to be nearly uninfluenced by this. - Thomas Scheuerle, Dec 14 2022
LINKS
Neal Gersh Tolunsky, Table of n, a(n) for n = 1..10000
Thomas Scheuerle, Scatter plot of a(n) per number of groups found. For n = 1...20000. This is the mean number of contiguous terms for each n.
Thomas Scheuerle, Scatter plot, number of groups of contiguous terms for n = 1...20000
EXAMPLE
a(17) is 10 because in the sequence so far (1, 1, 2, 3, 3, 4, 4, 5, 3, 5, 4, 6, 6, 7, 7, 8), these are the ways of adding contiguous terms to get a(16)=8: (2, 3, 3); (4, 4); (5, 3); (3, 5); (8). This is 10 terms in total, so a(17) is 10. Notice groups (5,3) and (3,5) overlap.
PROG
(MATLAB)
function a = A359034( max_n )
a = [1 1];
for n = 3:max_n
s = 1; e = 1; sm = 1; c = 0;
while e < n-1
while sm < a(n - 1) && e < (n - 1)
e = e + 1; sm = sm + a(e);
end
if sm == a(n - 1)
c = c + (e - s) + 1;
end
s = s + 1;
e = s; sm = a(s);
end
a(n) = c + 1;
end
end % Thomas Scheuerle, Dec 14 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Neal Gersh Tolunsky, Dec 12 2022
STATUS
approved