OFFSET
1,1
COMMENTS
For primes in this sequence see A146360.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 193 because continued fraction of (1+sqrt(193))/2 = 7, 2, 4, 6, 1, 2, 1, 1, 1, 1, 2, 1, 6, 4, 2, 13, 2, 4, 6, 1, 2, 1, 1, 1, 1, 2, 1, 6, 4, 2, 13, ... has period (2, 4, 6, 1, 2, 1, 1, 1, 1, 2, 1, 6, 4, 2, 13) length 15.
MAPLE
A146326 := proc(n) if not issqr(n) then numtheory[cfrac]( (1+sqrt(n))/2, 'periodic', 'quotients') ; nops(%[2]) ; else 0 ; fi; end:
isA146338 := proc(n) RETURN(A146326(n) = 15) ; end:
for n from 2 to 4000 do if isA146338(n) then printf("%d, \n", n) ; fi; od: # R. J. Mathar, Sep 06 2009
MATHEMATICA
Select[Range[10^4], !IntegerQ @ Sqrt[#] && Length[ContinuedFraction[(1 + Sqrt[#])/2][[2]]] == 15 &] (* Amiram Eldar, Mar 31 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Artur Jasinski, Oct 30 2008
EXTENSIONS
Extended beyond 3 terms by R. J. Mathar, Sep 06 2009
More terms from Amiram Eldar, Mar 31 2020
STATUS
approved