login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A162852 a(n) = 3*a(n-2) for n > 2; a(1) = 3, a(2) = -1. 3
3, -1, 9, -3, 27, -9, 81, -27, 243, -81, 729, -243, 2187, -729, 6561, -2187, 19683, -6561, 59049, -19683, 177147, -59049, 531441, -177147, 1594323, -531441, 4782969, -1594323, 14348907, -4782969, 43046721, -14348907, 129140163 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Third binomial transform is A162560.
Equivalently, 3^n followed by -3^(n-1), n > 0. - Muniru A Asiru, Oct 25 2018
LINKS
FORMULA
a(n) = ((4-5*(-1)^n)*3^(1/4*(2*n-1+(-1)^n)))/3.
G.f.: x*(3-x)/(1-3*x^2). [corrected by Klaus Brockhaus, Sep 18 2009]
E.g.f.: (1 - cosh(sqrt(3)*x) + 3*sqrt(3)*sinh(sqrt(3)*x))/3. - G. C. Greubel, Oct 24 2018
MAPLE
seq(op([3^n, -3^(n-1)]), n=1..18); # Muniru A Asiru, Oct 25 2018
MATHEMATICA
Rest[CoefficientList[Series[x*(3-x)/(1-3*x^2), {x, 0, 40}], x]] (* or *) LinearRecurrence[{0, 3}, {3, -1}, 40] (* G. C. Greubel, Oct 24 2018 *)
PROG
(Magma) [ n le 2 select 7-4*n else 3*Self(n-2): n in [1..34] ];
(PARI) x='x+O('x^40); Vec(x*(3-x)/(1-3*x^2)) \\ G. C. Greubel, Oct 24 2018
(GAP) a:=[3, -1];; for n in [3..25] do a[n]:=3*a[n-2]; od; a; # Muniru A Asiru, Oct 25 2018
CROSSREFS
Sequence in context: A126186 A368568 A370150 * A054448 A106516 A140071
KEYWORD
sign
AUTHOR
Klaus Brockhaus, Jul 14 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 10:11 EDT 2024. Contains 371935 sequences. (Running on oeis4.)