Okay, lets dive straight into the code...
const fib = n =>
Math.floor((((1 + 5**.5)/2)**n - ((1 - 5**.5)/2)**n)/5**.5)
Explanation here.
Okay, lets dive straight into the code...
const fib = n =>
Math.floor((((1 + 5**.5)/2)**n - ((1 - 5**.5)/2)**n)/5**.5)
Explanation here.
For further actions, you may consider blocking this person and/or reporting abuse
Iri Denis -
John Brooks -
Martins Gouveia -
Raj Nandan Sharma -
Top comments (1)
Wow.
High School Olympiad Math.
Well done!!!
🤩