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.

Showing 1-3 of 3 results.

A122536 Number of binary sequences of length n with no initial repeats (or, with no final repeats).

Original entry on oeis.org

2, 2, 4, 6, 12, 20, 40, 74, 148, 286, 572, 1124, 2248, 4460, 8920, 17768, 35536, 70930, 141860, 283440, 566880, 1133200, 2266400, 4531686, 9063372, 18124522, 36249044, 72493652, 144987304, 289965744
Offset: 1

Views

Author

Sarah Nibs, Sep 18 2006

Keywords

Comments

An initial repeat of a string S is a number k>=1 such that S(i)=S(i+k) for i=0..k-1. In other words, the first k symbols are the same as the next k symbols, e.g., ABCDABCDZQQ has an initial repeat of size 4.
Equivalently, this is the number of binary sequences of length n with curling number 1. See A216955. - N. J. A. Sloane, Sep 26 2012

Examples

			a(4)=6: 0100, 0110, 0111, 1000, 1001 and 1011. (But not 00**, 11**, 0101, 1010.)
		

Crossrefs

Twice A093371. Leading column of each of the triangles A216955, A217209, A218869, A218870. Different from, but easily confused with, A003000 and A216957. - N. J. A. Sloane, Sep 26 2012
See A121880 for difference from 2^n.

Formula

Conjecture: a_n ~ C * 2^n where C is 0.27004339525895354325... [Chaffin, Linderman, Sloane, Wilks, 2012]
a(2n+1)=2*a(2n) = A211965(n+1), a(2n)=2*a(2n-1)-A216958(n) = A211966(n). - N. J. A. Sloane, Sep 28 2012
a(1) = 2; a(2n) = 2*[a(2n-1) - A216959(n)], n >= 1. - Daniel Forgues, Feb 25 2015

Extensions

a(31)-a(71) computed from recurrence and the first 30 terms of A216958 by N. J. A. Sloane, Sep 28 2012, Oct 25 2012

A217208 a(n) = (conjectured) length of longest tail that can be generated by a starting string of 2's and 3's of length n before a 1 is reached, using the rule described in the Comments lines.

Original entry on oeis.org

0, 2, 2, 4, 4, 8, 8, 58, 59, 60, 112, 112, 112, 118, 118, 118, 118, 118, 119, 119, 119, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 132, 132, 132, 132, 132, 132, 132, 132, 133, 173, 173, 173, 173
Offset: 1

Views

Author

N. J. A. Sloane, Sep 29 2012; revised Oct 02 2012

Keywords

Comments

Start with an initial string S of n numbers s(1), ..., s(n), all = 2 or 3. The rule for extending the string is this:
To get s(i+1), write the current string s(1)s(2)...s(i) as XY^k for words X and Y (where Y has positive length) and k is maximized, i.e. k = the maximal number of repeating blocks at the end of the sequence so far (k is the "curling number" of the string). Then set s(i+1) = k.
The "tail length" t(S) of S is defined as follows: start with S and repeatedly append the curling number (recomputing it at each step) until a 1 is reached; t(S) is the number of terms that are appended to S before a 1 is reached. If a 1 is never reached, set t(S)=oo .
The "Curling Number Conjecture" is that if one starts with any finite string and repeatedly extends it by appending the curling number k, then eventually one must reach a 1. This has not yet been proved.
The values shown for n >= 49 are only conjectures, because certain assumptions used to cut down the search have not yet been rigorously justified. However, we believe that ALL terms shown are correct.

Examples

			a(3) = 2, using the starting string 3,2,2, which extends to 3,2,2,2,3, of length 5.
a(4) = 4, using the starting string 2,3,2,3, which extends to 2,3,2,3,2,2,2,3 of length 8.
a(8) = 58: start = 23222323, end = 232223232223222322322232223232223222322322232223232223222322322332.
a(22) = 120: start = 2322322323222323223223: see A116909 for trajectory.
		

Crossrefs

a(n) = length of n-th row of A217209.
a(n) = A094004(n) - n.

A217210 Number of strings of n 2's and 3's having a tail of length 1.

Original entry on oeis.org

0, 1, 2, 5, 9, 18, 34, 71, 139, 280, 555, 1119, 2228, 4462, 8907, 17835, 35634, 71288, 142507, 285077, 570013, 1140102, 2279924, 4560040, 9119516, 18239335, 36477548, 72955801, 145909351, 291819915, 583635336, 1167273283
Offset: 1

Views

Author

N. J. A. Sloane, Oct 01 2012

Keywords

Crossrefs

This is the k=1 column (the second column) of the triangle in A217209.
Showing 1-3 of 3 results.