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.

A378117 Lexicographically earliest sequence of nonnegative integers a(0), a(1), ..., such that a(n) is the number of pairs of adjacent terms whose sum is n.

Original entry on oeis.org

0, 1, 1, 2, 1, 3, 2, 3, 2, 4, 2, 5, 2, 5, 3, 5, 4, 5, 4, 5, 5, 5, 6, 5, 6, 5, 6, 6, 6, 7, 6, 7, 6, 7, 7, 7, 7, 8, 7, 8, 7, 8, 8, 8, 8, 8, 9, 8, 9, 8, 9, 9, 9, 9, 9, 10, 9, 10, 9, 10, 10, 10, 10, 10, 10, 11, 10, 11, 10, 11, 11, 11, 11, 11, 11, 11, 12, 11, 12
Offset: 0

Views

Author

Rémy Sigrist and N. J. A. Sloane, Nov 17 2024

Keywords

Examples

			We can take a(0) = 0.
We cannot take a(1) = 0 as there are no pairs of consecutive terms summing to 0.
We can take a(1) = 1.
We cannot take a(2) = 0 as we already have one pair of consecutive terms summing to 1.
We can take a(2) = 1.
We cannot take a(3) = 0 as we already have one pair of consecutive terms summing to 1.
We cannot take a(3) = 1 as we already have one pair of consecutive terms summing to 2.
We can take a(3) = 2.
		

Crossrefs