OFFSET
0,3
LINKS
Sean A. Irvine, Java program (github)
EXAMPLE
For n=6 the 7 solutions are (x,y,z) = (0,0,0), (5,1,0), (4,2,0), (4,1,1), (3,3,0), (3,2,1), (2,2,2).
PROG
(PARI)
iscanon(n, v)={for(d=1, n-1, if(gcd(n, d)==1 && lex(v, vecsort(v*d%n))>0, return(0))); 1}
a(n)={if(n==0, 1, sum(x=0, n-1, sum(y=x, n-1, my(z=(-x-y)%n); y<=z && iscanon(n, [x, y, z]) )))} \\ Andrew Howroyd, Jun 11 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
a(42) onward corrected by Sean A. Irvine, Jun 10 2021
STATUS
approved