login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A028833 Index of redundancy in period of continued fraction for sqrt(n). 0
0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 2, 0, 3, 2, 1, 0, 0, 0, 0, 1, 2, 0, 4, 2, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 6, 5, 3, 7, 1, 0, 0, 0, 0, 2, 2, 2, 2, 0, 3, 5, 2, 1, 6, 1, 0, 0, 0, 0, 5, 0, 4, 3, 4, 0, 4, 3, 2, 7, 2, 1, 1, 0, 0, 0, 0, 0, 2, 6, 0, 3, 2, 0, 5, 4, 6, 10, 1, 1, 8, 1, 0, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,7

LINKS

Table of n, a(n) for n=1..102.

FORMULA

Difference between A003285 and A028832.

MATHEMATICA

a[n_] := If[IntegerQ[Sqrt[n]], 0, Length[p = ContinuedFraction[Sqrt[n]] // Last] - Length[p // Union]]; Table[a[n], {n, 1, 102}] (* Jean-François Alcover, Dec 26 2012 *)

CROSSREFS

Sequence in context: A022883 A284270 A282568 * A024943 A325787 A005929

Adjacent sequences:  A028830 A028831 A028832 * A028834 A028835 A028836

KEYWORD

nonn,nice

AUTHOR

Olivier Gérard

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 24 05:07 EDT 2019. Contains 325290 sequences. (Running on oeis4.)