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
lalith_charan -
Ankur Singh -
Giovanni Proietta -
Kaviyarasu . M -
Top comments (1)
Wow.
High School Olympiad Math.
Well done!!!
🤩