OFFSET
1,1
LINKS
Jayanta Basu, Table of n, a(n) for n = 1..1000
MAPLE
for n from 2 to 130 do p := ithprime(n):f := 1:while(((s+f*p) mod n)<>0) do f := f+1:od:a[n] := f*p:s := s+a[n]:od:seq(a[i], i=1..130);
MATHEMATICA
s = 0; Table[p = Prime[n]; k = 1; While[! Divisible[s + (x = k*p), n], k++]; s += x; x, {n, 48}] (* Jayanta Basu, Aug 01 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Aug 22 2002
EXTENSIONS
More terms from Sascha Kurz, Feb 01 2003
STATUS
approved