OFFSET
1,4
COMMENTS
a(n) is even. (Proof. Each triple (a,b,c) with b < p/2 pairs uniquely with a triple (a',b',c') = (p-c,p-b,p-a) with b' > p/2.)
LINKS
Fausto A. C. Cariboni, Table of n, a(n) for n = 1..1000
Steven J. Miller, Combinatorial and Additive Number Theory Problem Sessions, arXiv:1406.3558 [math.NT]. See Nathan Kaplan's Problem 2014.1.4 on p. 30.
FORMULA
a(n) = 2*A242090(n).
EXAMPLE
For prime(4) = 7 there are 2 triples (a,b,c) with 0 < a < b < c < 7 and a + b + c == 0 mod 7, namely, 1+2+4 = 7 and 3+5+6 = 2*7, so a(4) = 2.
MATHEMATICA
Table[ Length[ Reduce[ Mod[a + b + c, Prime[n]] == 0 && 0 < a < b < c < Prime[n], {a, b, c}, Integers]], {n, 40}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Jonathan Sondow, Jun 16 2014
EXTENSIONS
a(41)-a(50) from Fausto A. C. Cariboni, Sep 30 2018
STATUS
approved