login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A042302
Numerators of continued fraction convergents to sqrt(678).
2
26, 677, 35230, 916657, 47701394, 1241152901, 64587652246, 1680520111297, 87451633439690, 2275422989543237, 118409447089688014, 3080921047321431601, 160326303907804131266, 4171564822650228844517, 217081697081719704046150
OFFSET
0,1
FORMULA
G.f.: (26 +677*x +26*x^2 -x^3)/(1 -1354*x^2 +x^4). - Vincenzo Librandi, Nov 21 2013
a(n) = 1354*a(n-2) - a(n-4). - Vincenzo Librandi, Nov 21 2013
MATHEMATICA
Numerator[Convergents[Sqrt[678], 20]] (* Harvey P. Dale, Oct 08 2012 *)
CoefficientList[Series[(26 + 677 x + 26 x^2 - x^3)/(1 - 1354 x^2 + x^4), {x, 0, 30}], x] (* Vincenzo Librandi, Nov 21 2013 *)
PROG
(Magma) I:=[26, 677, 35230, 916657]; [n le 4 select I[n] else 1354*Self(n-2)-Self(n-4): n in [1..30]]; // Vincenzo Librandi, Nov 21 2013
CROSSREFS
Cf. A042303.
Sequence in context: A188696 A009970 A041313 * A097835 A158643 A181227
KEYWORD
nonn,cofr,frac,easy
AUTHOR
STATUS
approved