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.

A059412 Number of distinct minimal unary DFA's with exactly n states.

Original entry on oeis.org

2, 4, 12, 30, 78, 180, 432, 978, 2220, 4926, 10908, 23790, 51750, 111564, 239604, 511758, 1089306, 2309118, 4880946, 10285146, 21619770, 45334776, 94865904, 198116082, 413013684, 859573638, 1786263822, 3706729488, 7681910826
Offset: 1

Views

Author

Jeffrey Shallit, Jan 30 2001

Keywords

Comments

Also, number of binary strings w of length 2n such that the longest suffix of w appearing at least twice in w is of length n. - Jeffrey Shallit, Mar 20 2017
Also, number of ultimately periodic binary sequences uvvvv... with |u|+|v| = n, formula uses psi(|v|) and 2^(|u|-1), plus psi(n) for u empty. - Michael Vielhaber, Mar 19 2022
Also, number of minimal length-n binary patterns, each corresponding to a minimal n-state deterministic Mealy automaton outputting some binary string. Used in the definition of the Deterministic Complexity (DC) of a string w, i.e., DC(w) = n. - Lucas B. Vieira, Mar 02 2024

Examples

			a(1) = 2 because there are exactly two minimal unary automata with 1 state.
		

References

  • M. Domaratzki, D. Kisman, and J. Shallit, On the number of distinct languages accepted by finite automata with n states, J. Autom. Lang. Combinat. 7 (2002) 4-18, Section 6, f_1(n).
  • Jeffrey Shallit, Notes on Enumeration of Finite Automata, manuscript, Jan 30, 2001.

Programs

Formula

a(n) = psi(n) + Sum_{j=1..n-1} psi(n-j)*2^(j-1), where psi(n) is the number of primitive words of length n over a 2-letter alphabet (expressible in terms of the Moebius function).
a(n) = A027375(n) + A059413(n-1). - R. J. Mathar, May 21 2018

A192088 Number of permutations of [n] realized by the shift on 3 letters.

Original entry on oeis.org

2, 6, 24, 114, 528, 2334, 9528, 36834, 135918, 484206, 1678152, 5694786, 19007808, 62625054, 204215340, 660445914, 2121665016, 6778399914, 21557206332, 68294432778, 215651021484, 679023425238, 2132750062560, 6684084844362, 20907052386534, 65279503654446
Offset: 2

Views

Author

Sergi Elizalde, Jun 23 2011

Keywords

References

  • S. Elizalde, The number of permutations realized by a shift, SIAM J. Discrete Math. 23 (2009), 765--786.

Crossrefs

Cf. A059413.

Formula

a(n)=3^(n-2)+sum(psi_3(t)*3^(n-t-1),t=1..n-1)-(n-1)*sum(psi_2(t)*2^(n-t-1),t=0..n-1), where psi_N(t) is the number of primitive words of length t over an N-letter alphabet, expressible in terms of the Möbius function.

A192089 Number of permutations of [n] that require a 3-letter alphabet in order to be realized by a shift.

Original entry on oeis.org

0, 0, 6, 66, 402, 2028, 8790, 35118, 131982, 475344, 1658382, 5651226, 18912498, 62418180, 203768862, 659487678, 2119617474, 6774043254, 21547968726, 68274910026, 215609878962, 678936947940, 2132568719358, 6683705385078, 20906259913566, 65277851607840
Offset: 2

Views

Author

Sergi Elizalde, Jun 23 2011

Keywords

Comments

These permutations are those realized by the shift on 3 letters (A192088)
but not by the shift on 2 letters (A059413).

Examples

			a(4)=6 because the permutations 1423, 3241, 4132, 2314 3421, 2134 are the only ones of length 4 that require 3 letters in order to be realized by a shift
		

References

  • S. Elizalde, The number of permutations realized by a shift, SIAM J. Discrete Math. 23 (2009), 765--786.

Crossrefs

Equals A192088 minus A059413

Formula

a(n)=3^(n-2)+sum(psi_3(t)*3^(n-t-1),t=1..n-1)-n*sum(psi_2(t)*2^(n-t-1),t=0..n-1), where psi_N(t) is the number of primitive words of length t over an N-letter alphabet, which is expressible in terms of the Möbius function.
Showing 1-3 of 3 results.