login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A024560
a(n) = Sum_{k=1..n} floor(1/{k*sqrt(6)}) where {x} := x - floor(x).
2
2, 3, 5, 6, 10, 11, 17, 18, 40, 42, 43, 45, 46, 49, 50, 55, 56, 67, 68, 69, 71, 72, 74, 75, 79, 80, 87, 88, 116, 118, 119, 121, 122, 125, 126, 131, 132, 144, 145, 146, 148, 149, 152, 153, 157, 158, 165, 166, 206, 208, 209, 211, 212, 215, 216, 221, 222, 236, 237, 238, 240, 241, 244
OFFSET
1,1
LINKS
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
Cf. A024561. Partial sums of A024559.
Sequence in context: A051839 A130714 A130689 * A000039 A302600 A053436
KEYWORD
nonn
STATUS
approved