cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A340470 Two adjacent integers sum up to a term of A036301.

Original entry on oeis.org

0, 112, 9, 103, 18, 94, 27, 85, 36, 76, 45, 67, 54, 58, 63, 49, 72, 40, 81, 31, 90, 22, 99, 13, 108, 4, 117, 17, 95, 26, 86, 35, 77, 44, 68, 53, 59, 62, 50, 71, 41, 80, 32, 89, 23, 98, 14, 107, 5, 116, 198, 138, 73, 39, 82, 30, 91, 21, 100, 12, 109, 3, 118, 16, 96, 25
Offset: 1

Views

Author

Eric Angelini and Carole Dubois, Jan 08 2021

Keywords

Comments

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

Examples

			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.
		

Crossrefs

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

Programs

  • Magma
    f:=func; 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