A349001 The number of Lyndon words of size n from an alphabet of 5 letters and 1st and 2nd letter of the alphabet with equal frequency in the words.
1, 3, 4, 14, 46, 174, 656, 2640, 10790, 45340, 193600, 839820, 3686424, 16353924, 73187456, 330052646, 1498335650, 6841899606, 31404443032, 144814450188, 670552118244, 3116578216310, 14534401932712, 67992210407514, 318969964124256, 1500268062754830
Offset: 0
Keywords
Examples
Examples for the alphabet {0,1,2,3,4}: a(0)=1 counts (), the empty word. a(3)=14 counts (021) (031) (041) (012) (013) (223) (233) (243) (014) (224) (234) (334) (244) (344), words of length 3 where the letters 0 and the 1 occur both either not or once. a(4)=46 counts (0011) (0221) (0321) (0421) (0231) (0331) (0431) (0241) (0341) (0441) (0212) (0312) (0412) (0122) (0132) (0142) (0213) (0313) (0413) (0123) (2223) (0133) (2233) (2333) (2433) (0143) (2243) (2343) (2443) (0214) (0314) (0414) (0124) (2224) (2324) (0134) (2234) (2334) (3334) (2434) (0144) (2244) (2344) (3344) (2444) (3444).
Links
Crossrefs
Programs
-
PARI
a(n) = if(n>0, sumdiv(n, d, moebius(n/d)*sum(k=0, d, binomial(d,k)*binomial(2*k,k)))/n, n==0) \\ Andrew Howroyd, Jan 14 2023
Extensions
Terms a(16) and beyond from Andrew Howroyd, Jan 14 2023
Comments