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.

A092335 Let a(1)=1. For n>1, a(n) is the greatest k such that a(1)a(2)...a(n-1) can be written in the form [x][y_1][y_2]...[y_k] where each y_i is of positive and equal length and for any i,j, y_i and y_j agree at every other term starting from the left (see example).

Original entry on oeis.org

1, 1, 2, 1, 1, 2, 2, 2, 3, 2, 1, 3, 2, 1, 2, 1, 2, 2, 3, 2, 2, 2, 3, 3, 2, 2, 2, 3, 2, 2, 3, 2, 2, 2, 3, 3, 2, 2, 2, 3, 2, 2, 3, 2, 2, 2, 3, 3, 3, 3, 4, 2, 1, 1, 2, 1, 1, 2, 2, 2, 3, 2, 1, 3, 2, 1, 2, 1, 2, 2, 3, 2, 2, 2, 3, 3, 2, 2, 2, 3, 2, 2, 3, 2, 2, 2, 3, 3, 2, 2, 2, 3, 2, 2, 3, 2, 2, 2, 3, 3, 3, 3, 4, 2, 2
Offset: 1

Views

Author

J. Taylor (integersfan(AT)yahoo.com), Mar 17 2004

Keywords

Comments

Multiplication here denotes concatenation of strings. This is Gijswijt's sequence, A090822, except when checking if 'y' blocks are 'equal', we only compare every other term and ignore the others

Examples

			For example, [1 2 3 4 5] and [1 0 3 100 5] count as being equal because both are of the form [1 ? 3 ? 5]
		

Crossrefs