OFFSET
7,2
COMMENTS
For s an integer such that GCD(s,6)=1, this is also the number of subsets of 6 integers between 1 and n such that their sum is s modulo n.
LINKS
David Broadhurst and Xavier Roulleau, Number of partitions of modular integers, arXiv:2502.19523 [math.NT], 2025.
Index entries for linear recurrences with constant coefficients, signature (2,1,-3,-1,1,4,-3,-3,4,1,-1,-3,1,2,-1).
FORMULA
G.f.: x^7*(1 + 2*x + 3*x^3 + 2*x^4 + 2*x^5 + x^6 + x^7)/((1 - x)^2*(1 - x^2)^2*(1 - x^3)*(1 - x^6)).
EXAMPLE
For n=7, a(7)=1 since the set {0,1,2,3,4,5} is the unique order 6 subset of Z/7Z with sum equal to 1 mod 7.
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Xavier Roulleau and David Broadhurst, Feb 19 2025
STATUS
approved