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-2 of 2 results.

A078805 Triangular array T given by T(n,k) = number of 01-words of length n having exactly k 1's, every runlength of 1's odd and initial letter 0.

Original entry on oeis.org

1, 1, 1, 1, 2, 0, 1, 3, 1, 1, 1, 4, 3, 2, 0, 1, 5, 6, 4, 2, 1, 1, 6, 10, 8, 6, 2, 0, 1, 7, 15, 15, 13, 6, 3, 1, 1, 8, 21, 26, 25, 16, 9, 2, 0, 1, 9, 28, 42, 45, 36, 22, 9, 4, 1, 1, 10, 36, 64, 77, 72, 50, 28, 12, 2, 0, 1, 11, 45, 93, 126, 133, 106, 70, 34, 13, 5, 1, 1, 12, 55, 130, 198, 232
Offset: 1

Views

Author

Clark Kimberling, Dec 07 2002

Keywords

Examples

			T(5,2) counts the words 01010, 01001, 00101.
Top of triangle T:
  1 = T(1,0)
  1 1 = T(2,0) T(2,1)
  1 2 0 = T(3,0) T(3,1) T(3,2)
  1 3 1 1
  1 4 3 2 0
		

References

  • Clark Kimberling, Binary words with restricted repetitions and associated compositions of integers, in Applications of Fibonacci Numbers, vol.10, Proceedings of the Eleventh International Conference on Fibonacci Numbers and Their Applications, William Webb, editor, Congressus Numerantium, Winnipeg, Manitoba 194 (2009) 141-151.

Crossrefs

Row sums: A028495.

Programs

  • Mathematica
    Clear[t];
    t[n_,k_]:=0/;Not[0<=n<=200&&0<=k<=200];
    t[1,0]=1;t[2,0]=1;t[2,1]=1;
    t[3,0]=1;t[3,1]=2;t[3,2]=0; t[4,2]=1;
    t[n_,k_]:=t[n,k]=t[n-2,k]+t[n-2,k-1]+t[n-2,k-2]+t[n-3,k-1]-t[n-4,k-2]
    u=Table[t[n,k],{n,1,12},{k,0,n-1}]
    Grid[u] (* triangle *)
    Flatten[u] (* sequence *)
    (* Clark Kimberling Jul 18 2025 *)

Formula

T(n, k)=T(n-2, k)+T(n-2, k-1)+T(n-2, k-2)+T(n-3, k-1)-T(n-4, k-2) for 0<=k<=n, n>=4. (All numbers T(i, j) not in the array are 0, by definition of T.)

A078806 Triangular array T given by T(n,k)= number of 01-words of length n having exactly k 1's, every runlength of 1's odd and initial letter 1.

Original entry on oeis.org

1, 1, 0, 1, 1, 1, 1, 2, 1, 0, 1, 3, 2, 2, 1, 1, 4, 4, 4, 1, 0, 1, 5, 7, 7, 4, 3, 1, 1, 6, 11, 12, 10, 6, 1, 0, 1, 7, 16, 20, 20, 13, 7, 4, 1, 1, 8, 22, 32, 36, 28, 19, 8, 1, 0, 1, 9, 29, 49, 61, 56, 42, 22, 11, 5, 1, 1, 10, 37, 72, 99, 104, 86, 56, 31, 10, 1, 0, 1, 11, 46, 102, 155, 182
Offset: 1

Views

Author

Clark Kimberling, Dec 07 2002

Keywords

Comments

Row sums: A006053.

Examples

			T(5,2) counts the words 10100, 10010, 10001. Top of triangle T:
1 = T(1,1)
1 0 = T(2,1) T(2,2)
1 1 1 = T(3,1) T(3,2) T(3,3)
1 2 1 0
1 3 2 2 1
		

References

  • Clark Kimberling, Binary words with restricted repetitions and associated compositions of integers, in Applications of Fibonacci Numbers, vol.10, Proceedings of the Eleventh International Conference on Fibonacci Numbers and Their Applications, William Webb, editor, Congressus Numerantium, Winnipeg, Manitoba 194 (2009) 141-151.

Crossrefs

Showing 1-2 of 2 results.