OFFSET
1,2
PROG
(PARI) a(n) = #Set(vector(n^2, x, Mod(x-1, n^2)^n)); \\ Michel Marcus, Aug 22 2023
(Python)
def A365099(n): return len({pow(x, n, n**2) for x in range(n**2)}) # Chai Wah Wu, Aug 22 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Albert Mukovskiy, Aug 21 2023
STATUS
approved