A064850 Period of continued fraction for sqrt(5)*n.
1, 2, 6, 2, 5, 4, 10, 4, 2, 14, 12, 4, 5, 10, 28, 8, 1, 2, 4, 14, 6, 8, 6, 4, 31, 14, 10, 12, 12, 20, 8, 20, 20, 2, 52, 2, 19, 4, 28, 24, 18, 8, 50, 12, 28, 6, 10, 4, 70, 62, 8, 18, 7, 10, 6, 8, 8, 12, 72, 20, 3, 12, 8, 36, 41, 28, 86, 2, 6, 44, 84, 2, 43, 42, 120, 4, 52, 36, 28, 44, 38
Offset: 1
Keywords
Examples
A040002 (cfrac for n=1) has period length 1, so a(1)=1. A040015 (cfrac for n=2) has period length 2, so a(2)=2. A010135 (cfrac for n=3) has period length 6, so a(3)=6. - _R. J. Mathar_, Feb 10 2016
Programs
-
Mathematica
Table[Length[ContinuedFraction[Sqrt[5]n][[2]]],{n,90}] (* Harvey P. Dale, Apr 13 2015 *)