![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6bhgGjBdFSZF0YfGl6P33Sk31FEu7G7dFSxGHBvbI7Hr5_6oqiYTa32Igqq0OMG7mBbZR7GHcZzMqfsUIrFdPScdfx9fH2fhM73AJsKfy0vUddNf9PLfdbOz6fi7719WL8GefH5c9-1Sa/s400/silver-ratio-1.jpg)
Here we go round and round Ulam's spiral, testing each number not for primality, but if(Math.round(n/1+1.41421)*n%5==0), paint circle. Basically another twisted formatter using 1+√2 modulo 5. Why 5? Why not?
Strange things happen around this number: Square root of 2
Same calc, swapping in modulo 7. Looks a bit like a cousin to the n mod 7 image.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK2uaXHMbhr5_SUzB_v6Kt2Ywr32E_gPHl7EPz7uD5RAl8DkRtMjWboWj3VR4BtoAXcWAxB_aYNefz-qQm08M19ESVxFTBOtX8VY4ImTzdgzmWfJlRdHkLaQDnzUeKbSoNOsmlYMHvtXrE/s320/silver-ratio-2.jpg)
Go modulo 8:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiExYcQw0a53lvlATJCgsoRXsTw-AiIZRIxUU2toMycIfslA7dTSrhbz0coAm-LhGatONWe36P51YO0GL6P8XKmwu5GmtCO50X24HW4k95CKvzB4-PGXciZ0IgSItB64Y9efJ633GRTBf6o/s320/silver-ratio-3.jpg)
Calculation per dot: (Math.round(pInt/(Math.sqrt(2)+1))%5==0)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR-YTH9Iaf4IgGfrNv5zm5L0q1pRiRAzkBH3oa03PNSb2yuOvrh2C_G-jKPKwpoYinRj8tNiuakYhL1wYMxMwnMkO9LqDcn1ilL6hVqWuLiCJWYK1ZZVvu991cMvVK13xMn_teu3NXzsof/s400/silver-ratio-4.jpg)
No comments:
Post a Comment