OFFSET
1,2
REFERENCES
V. S. Shevelev, On number of solutions of congruence Sum{i=1,...,s}x_i==r(modk), Izvestia Vuzov of the North-Caucasus region, Nature sciences, 2 (1997), 25-37 (in Russian).
FORMULA
EXAMPLE
If n=2, then we have the congruence x_1 + x_2 == 2 (mod 4), x_i is in {0,1,2,3}. Here we have only two solutions: (0,2) and (2,0) in the condition x_1<(>)x_2.
PROG
(PARI) a(n) = ((n-1)!/2) * sumdiv(n, d, ( -1)^(n+d) * eulerphi(n/d) * binomial(2*d, d) );
vector(33, n, a(n)) \\ Joerg Arndt, Sep 05 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Mar 26 2010, Jun 29 2010
EXTENSIONS
a(9) corrected and more terms from Joerg Arndt, Sep 05 2018
STATUS
approved