OFFSET
1,1
LINKS
Donatien Bénéat, Rows n=1..20 of triangle, flattened
EXAMPLE
For example, let n=3, k=2.
-------------------------------
word number of different subwords of length 2
-------------------------------
000 1
001 2
010 2
011 2
100 2
101 2
110 2
111 1
----------
total: 14 = a(3,2)
MATHEMATICA
nbSubWords[m_, k_] := Length[DeleteDuplicates[Partition[m, k, 1]]];
a[n_, k_] := Plus @@ (nbSubWords[#, k] & /@ Tuples[{0, 1}, n])
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Donatien Bénéat, Dec 24 2012
STATUS
approved