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