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!)
A158645 a(n) = 729*n^2 + 27. 2
27, 756, 2943, 6588, 11691, 18252, 26271, 35748, 46683, 59076, 72927, 88236, 105003, 123228, 142911, 164052, 186651, 210708, 236223, 263196, 291627, 321516, 352863, 385668, 419931, 455652, 492831, 531468, 571563, 613116, 656127, 700596, 746523 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

COMMENTS

The identity (54*n^2 + 1)^2 - (729*n^2 + 27)*(2*n)^2 = 1 can be written as A158646(n)^2 - a(n)*A005843(n)^2 = 1.

LINKS

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

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

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

FORMULA

G.f.: -27*(1 + 25*x + 28*x^2)/(x-1)^3.

a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).

MATHEMATICA

LinearRecurrence[{3, -3, 1}, {27, 756, 2943}, 50] (* Vincenzo Librandi, Feb 17 2012 *)

PROG

(MAGMA) I:=[27, 756, 2943]; [n le 3 select I[n] else 3*Self(n-1)-3*Self(n-2)+1*Self(n-3): n in [1..40]]; // Vincenzo Librandi, Feb 17 2012

(PARI) for(n=0, 40, print1(729*n^2 + 27", ")); \\ Vincenzo Librandi, Feb 17 2012

CROSSREFS

Cf. A005843, A158646.

Sequence in context: A279652 A284039 A159668 * A232951 A138979 A183505

Adjacent sequences:  A158642 A158643 A158644 * A158646 A158647 A158648

KEYWORD

nonn,easy

AUTHOR

Vincenzo Librandi, Mar 23 2009

EXTENSIONS

Comment rephrased and redundant formula replaced by R. J. Mathar, Oct 19 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 February 21 23:21 EST 2020. Contains 332113 sequences. (Running on oeis4.)