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!)
A253197 a(n) = a(n-1) + a(n-2) + (1 - (-1)^(a(n-1) + a(n-2))) with a(0) = 0, a(1) = 1. 4
0, 1, 3, 4, 9, 15, 24, 41, 67, 108, 177, 287, 464, 753, 1219, 1972, 3193, 5167, 8360, 13529, 21891, 35420, 57313, 92735, 150048, 242785, 392835, 635620, 1028457, 1664079, 2692536, 4356617, 7049155, 11405772, 18454929, 29860703, 48315632, 78176337, 126491971, 204668308, 331160281, 535828591, 866988872 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
This is a minimally modified Fibonacci sequence (A000045) in that it preserves characteristic properties of the original sequence: a(n) is a function of the sum of the preceding two terms, the ratio of two consecutive terms tends to the Golden Mean, and the initial two terms are the same as in the Fibonacci sequence. See A253198 and A255978 for other members of this family.
LINKS
W. Puszkarz, A Note on Minimal Extensions of the Fibonacci Sequence, viXra:1503.0113, 2015.
FORMULA
a(n) = a(n-1) + a(n-2) + (1 - (-1)^(a(n-1) + a(n-2))), a(0) = 0, a(1) = 1.
a(n) = a(n-1) + a(n-2) + a(n-3) - a(n-4) - a(n-5) for n > 4. - Colin Barker, Mar 28 2015
G.f.: x*(x^3 + 2*x + 1) / ((x-1)*(x^2 + x - 1)*(x^2 + x + 1)). - Colin Barker, Mar 28 2015
a(n) = 2*Fibonacci(n+1) - (1 if n == 0 (mod 3)) - 1. - Nicolas Bělohoubek, Sep 29 2021
EXAMPLE
For n = 2, a(2) = 0 + 1 + (1 - (-1)^1) = 0 + 1 + 2 = 3.
For n = 3, a(3) = 1 + 3 + (1 - (-1)^4) = 1 + 3 + 0 = 4.
For n = 4, a(4) = 3 + 4 + (1 - (-1)^7) = 3 + 4 + 2 = 9.
MATHEMATICA
RecurrenceTable[{a[n] == a[n - 1] + a[n - 2] + (1 - (-1)^(a[n - 1] + a[n - 2])), a[0] == 0, a[1] == 1}, a, {n, 0, 50}]
PROG
(Magma) [n le 2 select (n-1) else Self(n-1) + Self(n-2) + (1 - (-1)^(Self(n-1) + Self(n-2))): n in [1..50] ]; // Vincenzo Librandi, Mar 28 2015
(PARI) concat(0, Vec(x*(x^3+2*x+1)/((x-1)*(x^2+x-1)*(x^2+x+1)) + O(x^100))) \\ Colin Barker, Mar 28 2015
CROSSREFS
Sequence in context: A215667 A125874 A216075 * A255064 A369116 A165921
KEYWORD
nonn,easy
AUTHOR
Waldemar Puszkarz, Mar 24 2015
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 23 03:30 EDT 2024. Contains 371906 sequences. (Running on oeis4.)