OFFSET
3,5
LINKS
G. C. Greubel, Table of n, a(n) for n = 3..1000
MAPLE
seq(add(n mod floor(k/3), k = 3 .. n), n = 3..60); # Petros Hadjicostas, Nov 20 2019
MATHEMATICA
Table[Sum[Mod[n, Floor[k/3]], {k, 3, n}], {n, 3, 60}] (* G. C. Greubel, Dec 09 2019 *)
PROG
(PARI) vector(60, n, sum(k=3, n+2, (n+2)%(k\3)) ) \\ G. C. Greubel, Dec 09 2019
(Magma) [ (&+[n mod Floor(k/2): k in [3..n]]): n in [3..60]]; // G. C. Greubel, Dec 09 2019
(Sage) [sum( n%floor(k/3) for k in (3..n)) for n in (3..60)] # G. C. Greubel, Dec 09 2019
(GAP) List([3..60], n-> Sum([3..n], k-> n mod Int(k/3)) ); # G. C. Greubel, Dec 09 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved