login
A024554
a(n) = Sum_{k=1..n} floor( 1/{k*sqrt(5)} ), where {x} := x - floor(x).
2
4, 6, 7, 8, 13, 15, 16, 17, 25, 27, 28, 29, 43, 46, 47, 48, 124, 128, 130, 131, 132, 137, 139, 140, 141, 148, 150, 151, 152, 164, 167, 168, 169, 207, 210, 212, 213, 214, 218, 220, 221, 222, 228, 230, 231, 232, 242, 245, 246, 247, 272, 275, 276, 277, 278, 282, 284, 285, 286
OFFSET
1,1
LINKS
MATHEMATICA
Table[Sum[Floor[1/FractionalPart[k*Sqrt[5]]], {k, 1, n}], {n, 1, 100}]
(* Clark Kimberling, Aug 16 2012 *)
PROG
(Magma)a:=Sqrt(5); [&+[Floor(1/(k*a-Floor(k*a))):k in [1..n]]:n in [1..59]]; // Marius A. Burtea, Jul 16 2019
CROSSREFS
Cf. A024555. Partial sums of A024553.
Sequence in context: A100349 A326892 A047507 * A078744 A024555 A363375
KEYWORD
nonn
STATUS
approved