OFFSET
0,1
COMMENTS
The identity (81*n^2 + 90*n + 26)^2 - (9*n^2 + 10*n + 3)*(27*n + 15)^2 = 1 can be written as A154277(n+1)^2 - a(n+1)*A154267(n)^2 = 1. - Vincenzo Librandi, Feb 03 2012
For n >= 1, the continued fraction expansion of sqrt(a(n)) is [3n-2; {1, 2, 3n-2, 2, 1, 6n-4}]. For n=1, this collapses to [1; {1, 2}]. - Magus K. Chu, Sep 09 2022
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
From Vincenzo Librandi, Jan 30 2012: (Start)
G.f.: (2 - 3*x + 19*x^2)/(1-x)^3.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). (End)
E.g.f.: exp(x)*(2 + x + 9*x^2). - Elmo R. Oliveira, Oct 19 2024
MATHEMATICA
LinearRecurrence[{3, -3, 1}, {2, 3, 22}, 50] (* Vincenzo Librandi, Jan 30 2012 *)
PROG
(PARI) a(n)=9*n^2-8*n+2 \\ Charles R Greathouse IV, Dec 27 2011
(Magma) I:=[2, 3, 22]; [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
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jan 05 2009
EXTENSIONS
7662 replaced by 7862 by R. J. Mathar, Jan 07 2009
Edited by Charles R Greathouse IV, Jul 25 2010
STATUS
approved