OFFSET
1,1
COMMENTS
For primes in this sequence see A146351.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Harvey P. Dale)
EXAMPLE
a(2) = 19 because continued fraction of (1+sqrt(19))/2 = 2, 1, 2, 8, 2, 1, 3, 1, 2, 8, 2, 1, 3, 1, 2, 8, 2, 1, 3, 1, 2, 8, 2, 1, 3, 1, 2, 8, 2, 1 ... has period (1, 2, 8, 2, 1, 3) length 6.
MAPLE
A146326 := proc(n) if not issqr(n) then numtheory[cfrac]( (1+sqrt(n))/2, 'periodic', 'quotients') ; nops(%[2]) ; else 0 ; fi; end: isA146331 := proc(n) RETURN(A146326(n) = 6) ; end: for n from 2 to 380 do if isA146331(n) then printf("%d, ", n) ; fi; od: # R. J. Mathar, Sep 06 2009
MATHEMATICA
cf6Q[n_]:=Module[{c=(1+Sqrt[n])/2}, !IntegerQ[c]&&Length[ContinuedFraction[ c][[2]]]==6]; Select[Range[400], cf6Q] (* Harvey P. Dale, May 30 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Artur Jasinski, Oct 30 2008
EXTENSIONS
39, 68, 150, 203, etc. added by R. J. Mathar, Sep 06 2009
STATUS
approved