OFFSET
0,3
MAPLE
P:=proc(i) local a, n; for n from 0 by 1 to i do a:=sum('(n^k mod (n+k))', 'k'=1..n); print(a); od; end: P(100);
PROG
(PARI) a(n) = sum(k=1, n, n^k%(n+k)); \\ Jinyuan Wang, Aug 02 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo P. Lava and Giorgio Balzarotti, Feb 10 2009
STATUS
approved