Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected Fibonacci series equation #117

Merged
merged 1 commit into from
Nov 16, 2022
Merged

Corrected Fibonacci series equation #117

merged 1 commit into from
Nov 16, 2022

Conversation

ZiadAmerr
Copy link
Contributor

Overview

Corrected Fibonacci equation as defined

$$ \displaystyle \mathrm{fib}(x) = \left\{ \begin{array}{ll} {0}, & \mathrm{if} \ {x = {0}} \\ {1}, & \mathrm{if} \ {x = {1}} \\ \mathrm{fib}\left(x - {1}\right) + \mathrm{fib}\left(x - {2}\right), & \mathrm{otherwise} \end{array} \right. $$

and not

$$ \displaystyle \mathrm{fib}(x) = \left\{ \begin{array}{ll} {1}, & \mathrm{if} \ {x = {0}} \\ {1}, & \mathrm{if} \ {x = {1}} \\ \mathrm{fib}\left(x - {1}\right) + \mathrm{fib}\left(x - {2}\right), & \mathrm{otherwise} \end{array} \right. $$

The seeds of the sequence, $fib(0)$ and $fib(1)$ are $0$ and $1$ respectively and NOT $1$ and $1$ respectively.

References

https://oeis.org/A000045

https://www.mathsisfun.com/numbers/fibonacci-sequence.html

https://www.cuemath.com/algebra/fibonacci-numbers/

https://www.collinsdictionary.com/dictionary/english/fibonacci-sequence

@google-cla
Copy link

google-cla bot commented Nov 16, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@odashi odashi merged commit 8ca2b3a into google:main Nov 16, 2022
@odashi odashi added the documentation Improvements or additions to documentation label Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants