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

Tribonacci Sequence #382

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

edumoreira1506
Copy link

Hello guys! I saw the project and I like so much of maths algorithms. I saw the fibonacci sequence, that is perfect, but I remember of other sequence, the tribonacci sequence, so what I did was implent this and the respectives tests.

Basically is like fibonacci, but sum the three last elements from sequence. References:

https://brilliant.org/wiki/tribonacci-sequence/
http://mathworld.wolfram.com/TribonacciNumber.html
https://math.stackexchange.com/questions/2280243/tribonacci-sequence-term

@codecov
Copy link

codecov bot commented Aug 27, 2019

Codecov Report

Merging #382 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #382   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files         149    151    +2     
  Lines        2612   2626   +14     
  Branches      434    435    +1     
=====================================
+ Hits         2612   2626   +14
Impacted Files Coverage Δ
src/algorithms/math/tribonacci/tribonacciNth.js 100% <100%> (ø)
src/algorithms/math/tribonacci/tribonacci.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc1047d...7119baa. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant