OFFSET
1,4
MATHEMATICA
r = 3-Sqrt[6];
a[n_] := Floor[Sum[FractionalPart[k*r], {k, 1, n}]]
Table[a[n], {n, 1, 90}] (* A194249 *)
s[n_] := Sum[a[k], {k, 1, n}]
Table[s[n], {n, 1, 100}] (* A194250 *)
Accumulate[Accumulate[Table[FractionalPart[(3-Sqrt[6])n], {n, 80}]] //Floor] (* Harvey P. Dale, Jun 22 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Aug 20 2011
STATUS
approved