OFFSET
1,2
COMMENTS
This sequence gives the values of x in solutions of the Pell equation x^2 - 28*y^2 = 1; the corresponding y values are in A175672. [Edited by Jon E. Schoenfield, May 04 2014]
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..416
Index entries for linear recurrences with constant coefficients, signature (254,-1).
FORMULA
a(n) = 254*a(n-1) - a(n-2) (with a(1)=1, a(2)=127).
G.f.: x*(1-127*x)/(1-254*x+x^2). - Bruno Berselli, Apr 18 2011
MATHEMATICA
LinearRecurrence[{254, -1}, {1, 127}, 15] (* Paolo Xausa, Jul 21 2026 *)
PROG
(PARI) a(n)=([0, 1; -1, 254]^(n-1)*[1; 127])[1, 1] \\ Charles R Greathouse IV, May 30 2026
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Vincenzo Librandi, Dec 04 2010
EXTENSIONS
More terms from Paolo Xausa, Jul 21 2026
STATUS
approved
