OFFSET
1,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
MATHEMATICA
Table[Sum[j*Floor[(n+1-j)*GoldenRatio], {j, 1, Floor[(n+1)/2]}], {n, 1, 50}] (* G. C. Greubel, Jun 12 2019 *)
PROG
(PARI) {a(n) = sum(j=1, floor((n+1)/2), j*floor((n+1-j)*(1+sqrt(5))/2))}; \\ G. C. Greubel, Jun 12 2019
(Magma) [(&+[j*Floor((n+1-j)*(1+Sqrt(5))/2): j in [1..Floor((n+1)/2)]]): n in [1..50]]; // G. C. Greubel, Jun 12 2019
(Sage) [sum(j*floor((n+1-j)*golden_ratio) for j in (1..floor((n+1)/2))) for n in (1..50)] # G. C. Greubel, Jun 12 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Title simplified by Sean A. Irvine, Jun 12 2019
STATUS
approved