OFFSET
1,1
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..1000
MATHEMATICA
Table[Sum[Floor[1/FractionalPart[k*Sqrt[6]]], {k, 1, n}], {n, 1, 100}]
(* Clark Kimberling, Aug 16 2012 *)
PROG
(Magma) a:=Sqrt(6); [&+[Floor(1/(k*a-Floor(k*a))):k in [1..n]]:n in [1..60]]; // Vincenzo Librandi, Jul 17 2019
(PARI) a(n) = sum(k=1, n, floor(1/frac(k*sqrt(6)))); \\ Michel Marcus, Jul 17 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved