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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A057174 a(n+3)=a(n)+a(n+1)-a(n+2), starting with 1,2,3. 0
1, 2, 3, 0, 5, -2, 7, -4, 9, -6, 11, -8, 13, -10, 15, -12, 17, -14, 19, -16, 21, -18, 23, -20, 25, -22, 27, -24, 29, -26, 31, -28, 33, -30, 35, -32, 37, -34, 39, -36, 41, -38, 43, -40, 45, -42, 47, -44, 49, -46, 51, -48, 53, -50, 55, -52, 57, -54, 59, -56, 61, -58, 63, -60, 65, -62, 67, -64, 69, -66, 71, -68, 73, -70, 75, -72 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

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

J. Brillhart et al., Factorizations of b^n +- 1, Contemporary Mathematics, Vol. 22, Amer. Math. Soc., Providence, RI, 3rd edition, 2002.

Index entries for linear recurrences with constant coefficients, signature (-1,1,1).

FORMULA

O.g.f.: (1+3x+4x^2)/((1-x)(1+x)^2). a(n)=2+(n-1)*(-1)^n. [From R. J. Mathar, Aug 22 2008]

EXAMPLE

a(4)=0 because 1+2-3=0

CROSSREFS

Sequence in context: A272591 A074722 A080368 * A197658 A199514 A080367

Adjacent sequences:  A057171 A057172 A057173 * A057175 A057176 A057177

KEYWORD

easy,sign

AUTHOR

Gregory V. Richardson, Oct 17 2000

EXTENSIONS

More terms from James A. Sellers, Oct 18 2000

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 26 20:37 EDT 2019. Contains 324380 sequences. (Running on oeis4.)