|
Search: id:A096492
|
|
|
| A096492 |
|
Number of distinct terms in continued fraction period of square root of n. |
|
+0 2
|
|
| 1, 1, 2, 1, 1, 2, 2, 2, 1, 1, 2, 2, 2, 3, 2, 1, 1, 2, 4, 2, 3, 4, 3, 2, 1, 1, 2, 3, 3, 2, 4, 2, 3, 3, 2, 1, 1, 2, 2, 2, 2, 2, 4, 3, 3, 5, 3, 2, 1, 1, 2, 4, 3, 4, 2, 2, 3, 2, 4, 3, 5, 3, 2, 1, 1, 2, 5, 2, 4, 3, 4, 2, 3, 2, 2, 5, 4, 3, 3, 2, 1, 1, 2, 2, 3, 4, 2, 3, 3, 2, 3, 4, 4, 6, 3, 3, 3, 3, 2, 1, 1, 2, 5, 2, 2
(list; graph; listen)
|
|
|
OFFSET
|
1,3
|
|
|
EXAMPLE
|
n=127: the period={3,1,2,2,7,11,7,2,2,1,3,22},distinct-terms={1,2,3,7,11,22}, so a[127]=6;
|
|
MATHEMATICA
|
{tc=Table[0, {m}], u=1}; Do[s=Length[Union[Last[ContinuedFraction[n^(1/2)]]]]; tc[[u]]=s; u=u+1, {n, 1, m}], tc
|
|
CROSSREFS
|
Cf. A003285, A013646, A096491, A096493.
Sequence in context: A051486 A081355 A060778 this_sequence A053874 A123245 A110535
Adjacent sequences: A096489 A096490 A096491 this_sequence A096493 A096494 A096495
|
|
KEYWORD
|
cofr,nonn
|
|
AUTHOR
|
Labos E. (labos(AT)ana.sote.hu), Jun 29 2004
|
|
|
Search completed in 0.002 seconds
|