Created
March 22, 2017 15:03
-
-
Save hyuki0000/2e33150caa99195330a817fb07d98472 to your computer and use it in GitHub Desktop.
\phi^n looks like an integer. cf. https://twitter.com/hyuki/status/844562998349877248
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Phi = (Math.sqrt(5) + 1) / 2 | |
30.times do |n| | |
r = Phi ** n | |
puts r - r.to_i | |
end |
Author
hyuki0000
commented
Mar 22, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment