OFFSET
1,2
COMMENTS
A087786 includes pairs (x,y) with x>y (which are excluded from the present sequence).
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
PROG
(PARI) a(n) = sum(x=0, n-1, sum(y=x, n-1, Mod(x, n)^3 == Mod(y, n)^3)); \\ Michel Marcus, Oct 06 2024
(Python)
from collections import Counter
def A376757(n): return sum(d*(d+1)>>1 for d in Counter(pow(x, 3, n) for x in range(n)).values()) # Chai Wah Wu, Oct 06 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Tom Duff and N. J. A. Sloane, Oct 06 2024
STATUS
approved