OFFSET
1,3
FORMULA
a(n) = n*(n-3)/2 + ceiling(n/phi).
MATHEMATICA
Table[Sum[Floor[GoldenRatio*Floor[k/GoldenRatio]], {k, 0, n}], {n, 54}] (* or *) Table[n(n-3)/2+Ceiling[n/GoldenRatio], {n, 54}] (* James C. McMahon, Oct 07 2024 *)
PROG
(PARI) phi=(1+sqrt(5))/2; a(n)=n*(n-3)/2+ceil(n/phi)
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Jun 17 2006
STATUS
approved