OFFSET
1,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..5000
MATHEMATICA
c[n_] := Sum[Floor[j*(1/2+Sqrt[2])], {j, 1, n}];
c = Table[c[n], {n, 1, 90}]
Accumulate[Table[Floor[n(1/2+Sqrt[2])], {n, 50}]] (* Harvey P. Dale, May 26 2023 *)
PROG
(PARI) for(n=1, 60, print1(sum(j=1, n, floor(j*(sqrt(2) + 1/2))), ", ")) \\ G. C. Greubel, Oct 05 2018
(Magma) [(&+[Floor(k*(Sqrt(2) + 1/2)): k in [1..n]]): n in [1..60]]; // G. C. Greubel, Oct 05 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Aug 17 2011
STATUS
approved