OFFSET
1,2
COMMENTS
This sequence is a variant of A361144 where we allows negative values.
In order for the sequence to be infinite, zero sums are forbidden.
We can arrange the terms of the sequence as the leaves of a perfect infinite binary tree, the sums with e > 0 corresponding to parent nodes; each node will contain a different value and all nonzero values will appear in the tree.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, C++ program
EXAMPLE
The first terms (at the bottom of the tree) alongside the corresponding sums are:
18
---------------------------------
-18 36
----------------- -----------------
-2 -16 26 10
--------- --------- --------- ---------
3 -5 -9 -7 11 15 -20 30
----- ----- ----- ----- ----- ----- ----- -----
1 2 -1 -4 -3 -6 4 -11 5 6 7 8 -8 -12 9 21
PROG
(C++) See Links section.
CROSSREFS
KEYWORD
sign
AUTHOR
Rémy Sigrist, Mar 03 2023
STATUS
approved