OFFSET
7,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (6,-15,20,-15,6,-1,1,-6,15,-20,15,-6,1).
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
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
a(20) corrected by Herbert Kociemba, Oct 16 2016
STATUS
approved
