OFFSET
1,2
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..1351
MAPLE
a:=proc(n)
local x, y, z, w, N;
N:=0:
for x from 0 to n-1 do
for y from x to n-1 do
for z from y to n-1 do
for w from z to n-1 do
if (x+y+z+w-x*y*z*w) mod n = 0 then N:=N + 1; fi;
od:
od:
od:
od:
N;
end:
PROG
(Python)
def A376296(n):
c = 0
for x in range(n):
for y in range(x, n):
xy, xyp = x*y%n, (x+y)%n
for z in range(y, n):
xyz, xyzp = xy*z%n-1, (xyp+z)%n
c += sum(not (xyz*w-xyzp)%n for w in range(z, n))
return c # Chai Wah Wu, Sep 19 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
W. Edwin Clark, Sep 19 2024
STATUS
approved