Open Farbfetzen opened 5 years ago
https://www.youtube.com/watch?v=_UtCli1SgjI
In the video Sloane says there is a simple formula for the number of squares after n generations. Use this to initialize the matrix with an approximate upper bound. Afterwards cut off the excess.
Also the whole thing is symmetric so maybe I could speed it up by only iterating over a quarter.
Call the function
uwca
orulam_warburton
(make those names aliases).