login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A157440 a(n) = 121*n^2 - 204*n + 86. 3
3, 162, 563, 1206, 2091, 3218, 4587, 6198, 8051, 10146, 12483, 15062, 17883, 20946, 24251, 27798, 31587, 35618, 39891, 44406, 49163, 54162, 59403, 64886, 70611, 76578, 82787, 89238, 95931, 102866, 110043, 117462, 125123, 133026, 141171 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

The identity (14641*n^2 - 24684*n + 10405)^2 - (121*n^2 - 204*n + 86)*(1331*n - 1122)^2 = 1 can be written as A157442(n)^2 - a(n)*A157441(n)^2 = 1. - Vincenzo Librandi, Jan 29 2012

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 1..10000

Vincenzo Librandi, X^2-AY^2=1

Index entries for linear recurrences with constant coefficients, signature (3,-3,1).

FORMULA

G.f.: x*(-3 - 153*x - 86*x^2)/(x-1)^3. - Vincenzo Librandi, Jan 29 2012

a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). - Vincenzo Librandi, Jan 29 2012

MATHEMATICA

LinearRecurrence[{3, -3, 1}, {3, 162, 563}, 50] (* Vincenzo Librandi, Jan 29 2012 *)

PROG

(PARI) a(n)=121*n^2-204*n+86 \\ Charles R Greathouse IV, Dec 28 2011

(MAGMA) I:=[3, 162, 563]; [n le 3 select I[n] else 3*Self(n-1)-3*Self(n-2)+1*Self(n-3): n in [1..50]]; // Vincenzo Librandi, Jan 29 2012

CROSSREFS

Cf. A157441, A157442.

Sequence in context: A303099 A302950 A173128 * A157559 A157586 A341224

Adjacent sequences:  A157437 A157438 A157439 * A157441 A157442 A157443

KEYWORD

nonn,easy

AUTHOR

Vincenzo Librandi, Mar 01 2009

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 17 01:53 EDT 2021. Contains 343053 sequences. (Running on oeis4.)