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!)
A355020 a(n) = (-1)^n * A000045(n) + 1. 5
1, 0, 2, -1, 4, -4, 9, -12, 22, -33, 56, -88, 145, -232, 378, -609, 988, -1596, 2585, -4180, 6766, -10945, 17712, -28656, 46369, -75024, 121394, -196417, 317812, -514228, 832041, -1346268, 2178310, -3524577, 5702888, -9227464, 14930353, -24157816, 39088170 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
There are the partial sums of F(1) - F(2) + F(3) - F(4) + F(5) - ... .
Closely related (Lucas, A000032) partial sums of L(1) - L(2) + L(3) - L(4) + L(5) - ... are given by A355021.
Apart from signs, same as A008346 and A119282.
LINKS
FORMULA
a(n) = 2*a(n-2) - a(n-3) for n > 2.
G.f.: 1/(1 - 2*x^2 + x^3).
EXAMPLE
a(0) = 1;
a(1) = 1 - 1 = 0;
a(2) = 1 - 1 + 2 = 2;
a(3) = 1 - 1 + 2 - 3 = -1.
MATHEMATICA
f[n_] := Fibonacci[n]; g[n_] := LucasL[n];
Table[(-1)^n f[n] + 1, {n, 0, 40}] (* this sequence *)
Table[(-1)^n g[n] - 1, {n, 0, 40}] (* A355021 *)
1 - Fibonacci[-Range[0, 50]] (* G. C. Greubel, Mar 17 2024 *)
PROG
(PARI) a(n) = (-1)^n*fibonacci(n) + 1; \\ Michel Marcus, Jun 24 2022
(Magma) [1 - Fibonacci(-n): n in [0..50]]; // G. C. Greubel, Mar 17 2024
(SageMath) [1 - fibonacci(-n) for n in range(51)] # G. C. Greubel, Mar 17 2024
CROSSREFS
Sequence in context: A074763 A099932 A175000 * A008346 A119282 A241513
KEYWORD
sign,easy
AUTHOR
Clark Kimberling, Jun 21 2022
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 April 24 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)