OFFSET
2,1
COMMENTS
If k = 2^x then i = 2^(x+1) - 1.
LINKS
Paolo P. Lava, Table of n, a(n) for n = 2..71
EXAMPLE
1^99 mod 99 + 2^99 mod 99 + 3^99 mod 99 = 1 + 17 + 81 = 99.
MAPLE
P:=proc(q) local a, b, n; for n from 2 to q do a:=0; b:=0; while a<n do
b:=b+1; a:=a+(b^n mod n); od; if a=n then print(n); fi; od; end: P(10^5);
CROSSREFS
KEYWORD
nonn
AUTHOR
Paolo P. Lava, Jan 16 2017
STATUS
approved