|
|
A020967
|
|
a(n) = Sum_{k >=1} floor(n*sqrt(2)^(3-k)).
|
|
1
|
|
|
3, 9, 16, 22, 28, 36, 40, 49, 55, 62, 66, 76, 82, 87, 94, 103, 111, 116, 121, 130, 134, 141, 150, 157, 163, 170, 176, 182, 190, 196, 200, 212, 217, 227, 231, 238, 245, 250, 256, 266, 270, 277, 283, 291, 295, 307, 312, 320, 327, 333, 341, 347, 352, 360, 364
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
C. Kimberling, Problem 10520, Amer. Math. Mon. 103 (1996) p. 347.
|
|
MATHEMATICA
|
Table[Sum[Floor[n*Sqrt[2]^(3-k)], {k, 1, 1000}] -1, {n, 1, 50}] (* G. C. Greubel, May 31 2018 *)
|
|
PROG
|
(PARI) j=[]; for(n=1, 100, j=concat(j, suminf(k=1, floor(n*sqrt(2)^(3-k) )))); j
(Magma) [(&+[Floor(n*Sqrt(2)^(3-k)): k in [1..1000]]): n in [1..30]]; // G. C. Greubel, May 31 2018
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|