|
| |
|
|
A152163
|
|
a(n)=a(n-1)+a(n-2), n>1 ; a(0)=1, a(1)=-1 .
|
|
7
|
|
|
|
1, -1, 0, -1, -1, -2, -3, -5, -8, -13, -21, -34, -55, -89, -144, -233, -377, -610, -987, -1597, -2584, -4181, -6765, -10946, -17711, -28657, -46368, -75025, -121393, -196418, -317811, -514229, -832040, -1346269, -2178309, -3524578, -5702887
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
|
OFFSET
|
0,6
|
|
|
LINKS
|
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
|
|
|
FORMULA
|
G.f.: (1-2*x)/(1-x-x^2).
a(n) = Sum_{k, 0<=k<=n}A147703(n,k)*(-2)^k.
a(n) = -Fibonacci(n-2) for n>=2 .
a(n) = (1/2)*{[(1/2)+(1/2)*sqrt(5)]^n+[(1/2)-(1/2)*sqrt(5)]^n}+(3/10)*sqrt(5)*{[(1/2)-(1/2) *sqrt(5)]^n-[(1/2)+(1/2)*sqrt(5)]^n}, with n>=0 [From Paolo P. Lava, Dec 01 2008]
a(n) = (-1)^n*A039834(n-2). - R. J. Mathar, Mar 22 2011
G.f.: (1/(1-Q(0))-1)*(1-2*x)/x where Q(k)=1 - x^k/(1 - x/( x - x^k/Q(k+1) )); (continued fraction). - Sergei N. Gladkovskii, Feb 23 2013
G.f.: 2 - 2/(Q(0)+1) where Q(k) = 1 - 2*x/(1 - x/(x - 1/Q(k+1) )); (continued fraction ). - Sergei N. Gladkovskii, Apr 05 2013
|
|
|
MATHEMATICA
|
LinearRecurrence[{1, 1}, {1, -1}, 40] (* Harvey P. Dale, Oct 09 2012 *)
|
|
|
PROG
|
(MAGMA) I:=[1, -1]; [n le 2 select I[n] else Self(n-1)+Self(n-2): n in [1..40]]; // Vincenzo Librandi, Feb 23 2013
|
|
|
CROSSREFS
|
Cf. A000045.
Sequence in context: A107358 A185357 A132636 * A039834 A000045 A020695
Adjacent sequences: A152160 A152161 A152162 * A152164 A152165 A152166
|
|
|
KEYWORD
|
easy,sign
|
|
|
AUTHOR
|
Philippe DELEHAM, Nov 27 2008
|
|
|
STATUS
|
approved
|
| |
|
|