1,2

This is the lexicographically earliest sequence of distinct nonnegative terms with this property.

Carole Dubois, Table of n, a(n) for n = 1..10002

a(1) + a(2) = 0 + 112 = 112 (a term of A036301);

a(2) + a(3) = 112 + 9 = 121 (a term of A036301);

a(3) + a(4) = 9 + 103 = 112;

a(4) + a(5) = 103 + 18 = 121; etc.

(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

Cf. A036301 (even digits sum = odd digits sum).

Sequence in context: A292155 A341011 A103849 * A010032 A190026 A129947

Adjacent sequences: A340467 A340468 A340469 * A340471 A340472 A340473

base,nonn

Eric Angelini and Carole Dubois, Jan 08 2021

approved