OFFSET
1,2
COMMENTS
This is the lexicographically earliest sequence of distinct nonnegative terms with this property.
LINKS
Carole Dubois, Table of n, a(n) for n = 1..10002
EXAMPLE
PROG
(Magma) f:=func<n|&+[(-1)^c*c:c in Intseq(n)] eq 0>; a:=[0]; for n in [2..80] do k:=1; while k in a or not f(k+a[n-1]) do k:=k+1; end while; Append(~a, k); end for; a; // Marius A. Burtea, Jan 12 2021
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Eric Angelini and Carole Dubois, Jan 08 2021
STATUS
approved