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.

User: Jarkko Peltomäki

Jarkko Peltomäki's wiki page.

Jarkko Peltomäki has authored 3 sequences.

A334831 Number of binary words of length n that avoid abelian 4th powers circularly.

Original entry on oeis.org

2, 2, 6, 8, 10, 6, 28, 0, 36, 120, 132, 168, 364, 112, 390, 32, 374, 396, 114, 280, 756, 462, 92, 1584, 1100, 910, 2484, 2352, 3016, 3270, 10292, 5824, 12804, 12240
Offset: 1

Author

Jarkko Peltomäki, May 13 2020

Keywords

Comments

A word w of length n avoids abelian K-th powers circularly if every abelian K-th power in w^{K+1} has a block length of at least n. An abelian 4th power means a concatenation of four blocks that are permutations of each other, e.g., (011)(101)(110)(101) is an abelian 4th power of block length 3.

Examples

			a(6) = 6, and the words are 000111, 001110, 011100 and their complements. The word w = 010011 does not avoid abelian 4th powers circularly because w^3 has abelian 4th power of period 2 starting at position 6.
		

Crossrefs

A330878 Number of solutions of length n to the word equation X_1^2 ... X_n^2 = (X_1 ... X_n)^2 in the language of optimal squareful words.

Original entry on oeis.org

1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 14, 13, 14, 14, 15, 15, 16, 16, 17, 19, 18, 18, 20, 19, 20, 21, 22, 21, 24, 22, 23, 24, 24, 24, 27, 25, 26, 30, 27, 27, 30, 30, 32, 33, 30, 30, 35, 31, 32, 33, 33, 34, 38, 34, 35, 43
Offset: 1

Author

Jarkko Peltomäki, Apr 30 2020

Keywords

Comments

The solutions are counted up to the isomorphism 0 <-> 1 and the operation that exchanges the first two letters of a word.

Examples

			01010010 is a solution with X_1 = 01, X_2 = 0, X_3 = 10010. Other solutions of length 8 (up to isomorphism and exchange of first two letters) are 00000000, 01000000, 01000100, 01010101.
		

Crossrefs

Programs

  • PARI
    f(n) = {sumdiv(n >> valuation(n, 2), d, eulerphi(d)/znorder(Mod(2, d)))}; \\ A000374
    a(n) = n\2 + 1 + sumdiv(n, d, if (d>2, (2^(f(n/d) - 1) - 1)*(eulerphi(d)/2 - numdiv(d-1) + 1))); \\ Michel Marcus, Apr 30 2020

Formula

a(n) = floor(n/2) + 1 + Sum_{d|n, d > 2} (2^(A000374(n/d) - 1) - 1)*(A000010(d)/2 - A000005(d-1) + 1).

A269560 Length of the longest squarefree and rich word over an alphabet of n letters.

Original entry on oeis.org

1, 3, 7, 15, 33, 67, 145
Offset: 1

Author

Jarkko Peltomäki, Feb 29 2016

Keywords

Comments

A squarefree and rich word over a fixed alphabet always has bounded length (see Pelantová & Starosta). A word is squarefree if it does not contain squares as subwords, and a word of length n is rich if it contains exactly n+1 distinct palindromes (including the empty word) as subwords.
It is known that 2.008^n <= a(n) <= 2.237^n for n >= 5 (see Vesti).

Examples

			For n = 3, the longest squarefree and rich words are (up to isomorphism) 0102010 and 0121012. For n = 4, e.g., the word 010201030102010 has maximal length.