OFFSET
2,2
MAPLE
with(numtheory): m:=3: for n from 2 to 100 do S:={}: for a from 1 to n-1 do if gcd(a, n)=1 and gcd(cyclotomic(m, a), n)=1 then S:={op(S), a}: fi: od: print(sum(op(i, S), i=1..nops(S)) mod n): od:
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael Mueller, Jordan Lenchitz, Tristan Phillips, Madison Wellen, Eric Jovinelly, Joshua Harrington, Jul 27 2017
STATUS
proposed