OFFSET
0,5
COMMENTS
a(n) is the sum of the down steps in the first n terms of Recamán's sequence A005132.
FORMULA
a(n) = Sum_{k=1..n} max(0, -A160356(k)).
EXAMPLE
a(0) = (0-0)/2, a(1) = (1-1)/2, a(2) = (3-3)/2, a(3) = (6-6)/2, a(4) = (10-2)/2, a(5) = (15-7)/2 ... .
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul Curtz, Nov 06 2024
STATUS
approved