Skip to content

Instantly share code, notes, and snippets.

@yuval-a
Created October 9, 2022 12:06
Show Gist options
  • Save yuval-a/43bac660b3b46063ff58263d7ee2cb24 to your computer and use it in GitHub Desktop.
Save yuval-a/43bac660b3b46063ff58263d7ee2cb24 to your computer and use it in GitHub Desktop.
Fibonacci positive Nth item formula
const G = (1 + Math.sqrt(5)) / 2; // Golden Ratio
Math.round(G ** n / Math.sqrt(5));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment