|
| |
|
|
A141576
|
|
An alternating sequence of a difference-type: a(0)=-1, a(1)=0, a(2)=1, a(n)=a(n-1)-2*a(n-2)+a(n-3).
|
|
0
| |
|
|
-1, 0, 1, 0, -2, -1, 3, 3, -4, -7, 4, 14, -1, -25, -9, 40, 33, -56, -82, 63, 171, -37, -316, -71, 524, 350, -769, -945, 943, 2064, -767, -3952, -354, 6783, 3539, -10381, -10676, 13625, 24596, -13330, -48897, 2359, 86823, 33208, -138079, -117672, 191694
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,5
|
|
|
REFERENCES
| Martin Gardner, Mathematical Circus,Randon House, New York, 1981, p. 165
http://math.fullerton.edu/mathews/software/Matlab2004.zip
|
|
|
FORMULA
| O.g.f.: (1-x+x^2)/(-1+x-2x^2+x^3). a(n)=A078019(n-2), n>0. [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Aug 25 2008]
|
|
|
PROG
| MatLab program:
function y=fib(n)
%Generates difference squence
fz(1)=-1; fz(2)=0; fz(3)=1;
for k=4:n
fz(k)=fz(k-1)-2*fz(k-2)+fz(k-3);
end
y=fz(n);
|
|
|
CROSSREFS
| Sequence in context: A032215 A117363 A007307 * A078019 A038071 A032140
Adjacent sequences: A141573 A141574 A141575 * A141577 A141578 A141579
|
|
|
KEYWORD
| sign
|
|
|
AUTHOR
| Matt Wynne (mattwyn(AT)verizon.net), Aug 18 2008
|
|
|
EXTENSIONS
| Extended by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Aug 25 2008
|
| |
|
|