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!)
A014915 a(1)=1, a(n) = n*3^(n-1) + a(n-1). 15
1, 7, 34, 142, 547, 2005, 7108, 24604, 83653, 280483, 930022, 3055786, 9964519, 32285041, 104029576, 333612088, 1065406345, 3389929279, 10750918570, 33996147910, 107218620331, 337346390797, 1059110761804, 3318547053652, 10379285465677, 32408789311195 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
From Henry Bottomley, Dec 18 2000: (Start)
a(n) = ((2*n-1)*3^n + 1)/4;
a(n) = 7*a(n-1) - 15*a(n-2) + 9*a(n-3);
a(n) = 1 + 2*3 + 3*3^2 + .. + n*3^(n-1);
a(n) = a(n-1) + A027471(n+1). (End)
G.f.: x/((1-x)*(1-3*x)^2). - Colin Barker, Jul 28 2012
a(n) = f^n(n)/2 with f(x) = 3*x-1. - Glen Gilchrist, Apr 10 2019
MATHEMATICA
LinearRecurrence[{7, -15, 9}, {1, 7, 34}, 25] (* L. Edson Jeffery, May 08 2015 *)
PROG
(Magma) [((2*n - 1)*3^n + 1)/4: n in [1..30]]; // Vincenzo Librandi, Jun 09 2011
CROSSREFS
Cf. A059045.
Sequence in context: A122611 A326245 A219756 * A137747 A273722 A005023
KEYWORD
nonn,easy
AUTHOR
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 08:48 EDT 2024. Contains 371930 sequences. (Running on oeis4.)