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
Pelle Nilsen -
Sushant Gaurav -
Michal Kowalkowski -
Hossein Yazdi -
Top comments (1)
Wow.
High School Olympiad Math.
Well done!!!
🤩