[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Revision History for A294603 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Number of words of semilength n over n-ary alphabet, either empty or beginning with the first letter of the alphabet, such that the index set of occurring letters is an integer interval [1, k], that can be built by repeatedly inserting doublets into the initially empty word.
(history; published version)
#14 by Michael De Vlieger at Sat Mar 19 06:37:22 EDT 2022
STATUS

reviewed

approved

#13 by Michel Marcus at Sat Mar 19 03:42:38 EDT 2022
STATUS

proposed

reviewed

#12 by Jean-François Alcover at Sat Mar 19 03:40:31 EDT 2022
STATUS

editing

proposed

#11 by Jean-François Alcover at Sat Mar 19 03:40:26 EDT 2022
MATHEMATICA

A[n_, k_] := A[n, k] = If[n == 0, 1, k/n*

Sum[Binomial[2*n, j]*(n-j) *If[j == 0, 1, (k - 1)^j], {j, 0, n - 1}]];

T[n_, k_] := T[n, k] =

Sum[A[n, k - i]*(-1)^i*Binomial[k, i], {i, 0, k}]/If[k == 0, 1, k];

a[n_] := Sum[T[n, k], {k, 0, n}];

Table[a[n], {n, 0, 20}] (* Jean-François Alcover, Mar 19 2022, after Alois P. Heinz *)

STATUS

approved

editing

#10 by Alois P. Heinz at Sat Nov 04 17:44:06 EDT 2017
STATUS

editing

approved

#9 by Alois P. Heinz at Sat Nov 04 17:41:34 EDT 2017
FORMULA

a(n) = Sum_{k=0..n} A256116(n,k).

#8 by Alois P. Heinz at Sat Nov 04 17:40:40 EDT 2017
MAPLE

A:= proc(n, k) option remember; `if`(n=0, 1, k/n*

add(binomial(2*n, j) *(n-j) *(k-1)^j, j=0..n-1))

end:

T:= proc(n, k) option remember;

add(A(n, k-i)*(-1)^i*binomial(k, i), i=0..k)/`if`(k=0, 1, k)

end:

a:= n-> add(T(n, k), k=0..n):

seq(a(n), n=0..20);

#7 by Alois P. Heinz at Sat Nov 04 17:39:08 EDT 2017
EXAMPLE

a(3) = 20: aaaaaa, aaaabb, aaabba, aabaab, aabbaa, aabbbb, aabbcc, aabccb, aacbbc, aaccbb, abaaba, abbaaa, abbabb, abbacc, abbbba, abbcca, abccba, acbbca, accabb, accbba.

#6 by Alois P. Heinz at Sat Nov 04 17:20:50 EDT 2017
EXAMPLE

a(0) = 1: the empty word.

a(1) = 1: aa.

a(2) = 3: aaaa, aabb, abba.

#5 by Alois P. Heinz at Sat Nov 04 17:19:08 EDT 2017
NAME

a

Number of words of semilength n over n-ary alphabet, either empty or beginning with the first letter of the alphabet, such that the index set of occurring letters is an integer interval [1, k], that can be built by repeatedly inserting doublets into the initially empty word.