A064849 Period of continued fraction for sqrt(3)*n.
2, 2, 2, 2, 4, 8, 2, 4, 10, 4, 2, 8, 6, 2, 2, 8, 6, 20, 4, 8, 14, 8, 8, 12, 16, 2, 30, 2, 16, 4, 18, 16, 10, 20, 16, 20, 18, 8, 6, 12, 2, 12, 8, 8, 6, 20, 20, 20, 30, 36, 6, 2, 8, 68, 14, 2, 16, 32, 22, 4, 38, 18, 40, 36, 6, 28, 10, 20, 40, 8, 4, 40, 18, 22, 16, 12, 28, 2, 46, 20, 98, 8
Offset: 1
Keywords
Examples
A040001 (cfrac for n=1) has period length 2, so a(1)=2. A040008 (cfrac for n=2) has period length 2, so a(2)=2. A040021 (cfrac for =3) has period length 2, so a(3)=2. - _R. J. Mathar_, Feb 10 2016
Programs
-
Mathematica
Table[Length[Last[ContinuedFraction[Sqrt[3] n]]], {n, 128}]