OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
n = 31: prime(31) = 127, and the periodic part is {3,1,2,2,7,11,7,2,2,1,3,22}, so a(31) = 6.
MATHEMATICA
{te=Table[0, {m}], u=1}; Do[s=Length[Union[Last[ContinuedFraction[Prime[n]^(1/2)]]]]; te[[u]]=s; u=u+1, {n, 1, m}]; te
Table[Length[Union[ContinuedFraction[Sqrt[Prime[n]]][[2]]]], {n, 110}] (* Harvey P. Dale, Jun 22 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jun 29 2004
STATUS
approved