Feeds:
Posts
Comments

Archive for January, 2017

Assume that numbers like 121 and 23432 are interesting because they are palindromes (rendered in bright green), and that numbers like 122 and 22432 are kind of interesting because they are almost palindromes (rendered in a shade of gray corresponding to how palindromic they are). Now calculate and render that for every pixel in a 1000×1000 image, with pixel 0 being in the upper left hand corner and pixel 999,999 in the lower right, and you’ll end up with something like this:

Palindromic numbers from 0 to 999,999

Code developed in Jupyter notebook, here.

Advertisements

Read Full Post »