OFFSET
1,5
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
f:= proc(n) local r; add(n &^ r mod r, r=1..n) end proc:
map(f, [$1..100]); # Robert Israel, Apr 17 2023
MATHEMATICA
Do[Print[Sum[Mod[n^r, r], {r, 1, n}]], {n, 1, 30}] (* Ryan Propper, Jul 10 2005 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Apr 26 2004
EXTENSIONS
More terms from Ryan Propper, Jul 10 2005
STATUS
approved