OFFSET
1,5
MATHEMATICA
r = 3-Sqrt[8];
a[n_] := Floor[Sum[FractionalPart[k*r], {k, 1, n}]]
Table[a[n], {n, 1, 90}] (* A194251 *)
s[n_] := Sum[a[k], {k, 1, n}]
Table[s[n], {n, 1, 100}] (* A194252 *)
Table[Floor[Sum[FractionalPart[k(3-Sqrt[8])], {k, n}]], {n, 80}] (* Harvey P. Dale, Dec 27 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Aug 20 2011
STATUS
approved