OFFSET
1,2
COMMENTS
Subset of A196546.
EXAMPLE
a(3) = 14 because x^14 == 0, 1, 2, 4, 7, 8, 9, 11
(mod 14), and the sum 0+1+2+4+7+8+9+11 = 42 is divisible by 14.
MAPLE
with(numtheory):T:=array(1..150): for n from 1 to 150 do:for k from 1 to n do:T[k]:=irem(k^n, n):od:W:=convert(T, set):x:=nops(W):s:=0:for i from 1 to x do:s:=s+W[i]:od:if irem(s, n)=0 and type(n, prime)=false then printf(`%d, `, n):else fi:od:
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Oct 03 2011
STATUS
approved
