OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
C. Kimberling, Problem 10520, Amer. Math. Mon. 103 (1996) p. 347.
MATHEMATICA
Table[t=0; k=0; While[k++; s=Floor[3*(1+Sqrt[2])^(n-k)]; s>0, t= t+s]; t, {n, 26}]
Table[Sum[Floor[3*(1+Sqrt[2])^(n-k)], {k, 1, 1000}], {n, 0, 50}] (* G. C. Greubel, Sep 30 2018 *)
PROG
(PARI) for(n=1, 50, print1(sum(k=1, 2*n, floor(3*(1+sqrt(2))^(n-k))), ", ")) \\ G. C. Greubel, Sep 30 2018
(Magma) [(&+[Floor(3*(1+sqrt(2))^(n-k)): k in [1..2*n]]): n in [1..50]] // G. C. Greubel, Sep 30 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Revised Feb 03 1999. Revised Nov 30 2010.
STATUS
approved