%I #15 Sep 08 2022 08:45:43
%S 674,2700,6078,10808,16890,24324,33110,43248,54738,67580,81774,97320,
%T 114218,132468,152070,173024,195330,218988,243998,270360,298074,
%U 327140,357558,389328,422450,456924,492750,529928,568458,608340,649574,692160
%N 676n^2 - 2n.
%C The identity (676*n-1)^2-(676*n^2-2*n)*(26)^2=1 can be written as A158393(n)^2-a(n)*(26)^2=1.
%H Vincenzo Librandi, <a href="/A158392/b158392.txt">Table of n, a(n) for n = 1..10000</a>
%H Vincenzo Librandi, <a href="http://mathforum.org/kb/message.jspa?messageID=5785989&tstart=0">X^2-AY^2=1</a>
%H E. J. Barbeau, <a href="http://www.math.toronto.edu/barbeau/home.html">Polynomial Excursions</a>, Chapter 10: <a href="http://www.math.toronto.edu/barbeau/hxpol10.pdf">Diophantine equations</a> (2010), pages 84-85 (row 15 in the first table at p. 85, case d(t) = t*(26^2*t-2)).
%H <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (3,-3,1).
%F a(n) = 3*a(n-1) -3*a(n-2) +a(n-3).
%F G.f.: x*(-674-678*x)/(x-1)^3.
%t LinearRecurrence[{3,-3,1},{674,2700,6078},50]
%o (Magma) I:=[674, 2700, 6078]; [n le 3 select I[n] else 3*Self(n-1)-3*Self(n-2)+1*Self(n-3): n in [1..50]];
%o (PARI) a(n) = 676*n^2 - 2*n.
%Y Cf. A158393.
%K nonn,easy
%O 1,1
%A _Vincenzo Librandi_, Mar 18 2009
|