The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A186948 a(n) = 3^n - 2*n. 3
1, 1, 5, 21, 73, 233, 717, 2173, 6545, 19665, 59029, 177125, 531417, 1594297, 4782941, 14348877, 43046689, 129140129, 387420453, 1162261429, 3486784361, 10460353161, 31381059565, 94143178781, 282429536433, 847288609393 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Binomial transform is A186947. Binomial transform of A186949.
LINKS
FORMULA
G.f.: (1 - 4x + 7x^2)/((1-x)^2*(1-3x)).
a(n) = 3*a(n-1) + 2*(2n-3). - Vincenzo Librandi, Mar 13 2011
a(n) = 5*a(n-1) - 7*a(n-2) + 3*a(n-3); a(0)=1, a(1)=1, a(2)=5. - Harvey P. Dale, Nov 24 2011
MATHEMATICA
Table[3^n-2n, {n, 0, 30}] (* or *) LinearRecurrence[{5, -7, 3}, {1, 1, 5}, 30] (* Harvey P. Dale, Nov 24 2011 *)
PROG
(PARI) a(n)=3^n-2*n \\ Charles R Greathouse IV, Oct 16 2015
CROSSREFS
Sequence in context: A055280 A268304 A273450 * A271251 A201435 A202507
KEYWORD
nonn,easy,changed
AUTHOR
Paul Barry, Mar 01 2011
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 May 15 08:34 EDT 2024. Contains 372538 sequences. (Running on oeis4.)