OFFSET
1,7
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
MAPLE
seq( add(`mod`(n, floor(n/j)), j=1..n), n=1..70); # G. C. Greubel, Dec 12 2019
MATHEMATICA
Table[Sum[Mod[n, Floor[n/j]], {j, n}], {n, 70}] (* G. C. Greubel, Dec 12 2019 *)
PROG
(PARI) vector(70, n, sum(j=1, n, lift(Mod(n, n\j))) ) \\ G. C. Greubel, Dec 12 2019
(Magma) [ &+[(n mod Floor(n/j)): j in [1..n]]: n in [1..70]]; // G. C. Greubel, Dec 12 2019
(Sage) [sum( n%floor(n/j) for j in (1..n)) for n in (1..70)] # G. C. Greubel, Dec 12 2019
(GAP) List([1..70], n-> Sum([1..n], j-> n mod Int(n/j)) ); # G. C. Greubel, Dec 12 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved