[seqfan] Re: Add or subtract my cumulative sum of terms

Éric Angelini bk263401 at skynet.be
Mon Feb 24 18:10:45 CET 2020


The variant with "terms" instead of "digits" shows a regular pattern:

> Variant:
> start T with a(1) = 1 and now:
> if a(n) is odd, add to a(n) the cumultive sum Q of the terms of T;
> if a(n) is even, subtract Q from a(n) to get a(n+1); 

op  +  -   +  +  -   +  +   -   +  +  -    +  +   -   +   +   -    +
T = 1, 2, -1, 1, 4, -3, 1,  6, -5, 1,  8, -7, 1, 10, -9,  1, 12, -11, ...
Q = 1  3   2  3  7   4  5  11   6  7  15   8  9  19  10  11  23   12

Neither T nor Q (regular pattern too) are in the OEIS.
Best,
É.



More information about the SeqFan mailing list