login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A182228 a(0)=0, a(1)=1; for n>1, a(n) = 3*a(n-2) - a(n-1). 0
0, 1, -1, 4, -7, 19, -40, 97, -217, 508, -1159, 2683, -6160, 14209, -32689, 75316, -173383, 399331, -919480, 2117473, -4875913, 11228332, -25856071, 59541067, -137109280, 315732481, -727060321, 1674257764, -3855438727, 8878212019, -20444528200, 47079164257 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,4

COMMENTS

This is A006130 with signs on every other term. - T. D. Noe, Apr 23 2012

LINKS

Table of n, a(n) for n=0..31.

Index to sequences with linear recurrences with constant coefficients, signature (-1,3).

FORMULA

a(n) = -A140167(n). G.f. -x/ ( 1+x-3*x^2 ). - R. J. Mathar, Apr 22 2013

PROG

(Python)

prpr = 0

prev = 1

for i in range(2, 55):

. current = prpr*3-prev

. print current,

. prpr = prev

. prev = current

CROSSREFS

Sequence in context: A062306 A140167 A006130 * A182646 A190646 A220011

Adjacent sequences:  A182225 A182226 A182227 * A182229 A182230 A182231

KEYWORD

sign,easy

AUTHOR

Alex Ratushnyak, Apr 19 2012

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified May 23 23:27 EDT 2013. Contains 225613 sequences.