login
A051172
T(n,7), array T as in A051168; a count of Lyndon words; aperiodic necklaces with 7 black beads and n-7 white beads.
1
0, 1, 4, 12, 30, 66, 132, 245, 429, 715, 1144, 1768, 2652, 3876, 5537, 7752, 10659, 14421, 19228, 25300, 32890, 42287, 53820, 67860, 84825, 105183, 129456, 158224, 192129, 231880, 278256, 332112, 394383, 466089, 548340
OFFSET
7,3
FORMULA
G.f.: -(x^7/7)*(1/(1- x^7)+1/(-1+x)^7). - Herbert Kociemba, Oct 16 2016
a(n) = n^6/5040 - n^5/240 + 5/144*n^4 - 7/48*n^3 + 29/90*n^2 - 7/20*n + O(1). - Charles R Greathouse IV, Jun 02 2026
MATHEMATICA
Drop[CoefficientList[Series[-(x^7/7)*(1/(1-x^7)+1/(-1+x)^7), {x, 0, 50}], x], 7] (* Harvey P. Dale, Aug 04 2024 *)
PROG
(PARI) a(n)=(n^6-21*n^5+175*n^4-735*n^3+1624*n^2-1764*n+bittest(126, n%7)*720)/5040 \\ Charles R Greathouse IV, Jun 02 2026
CROSSREFS
Cf. A000031, A001037, A051168. Same as A011797(n-1).
Sequence in context: A274250 A004036 A011797 * A032192 A212587 A338223
KEYWORD
nonn,easy
EXTENSIONS
a(20) corrected by Herbert Kociemba, Oct 16 2016
STATUS
approved