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.

A381894 Lexicographically earliest sequence of positive integers such that a(n) is the length of the n-th run of consecutive, equal terms and no two runs have the same sum.

Original entry on oeis.org

1, 2, 2, 1, 1, 3, 5, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6, 3, 3, 3, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 11, 11, 11, 13, 13, 13, 15, 15, 15, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9
Offset: 1

Views

Author

Neal Gersh Tolunsky, Mar 09 2025

Keywords

Examples

			a(6) = 3 because the 4th run must have length a(4) = 1, and the potential runs 1 and 2 have the same sum as a run already in the sequence (namely 1 and 1,1). So a(6) = 3 since no run has appeared with a sum of 3 thus far.
		

Crossrefs