Writing about my life. When I'm well it's math and code… But when the schizy demon rises it's prose and poetry.

Posts Tagged ‘Collatz

The Collatz Problem

leave a comment »

I played around with this code, built for speed. It’s so simple there’s not even much point in functionalising it, no gain in readability. I will be doing more code to generate OEIS sequences in future, because it’s a nice pastime. I included extensive comments as a vague attempt to embody more of Knuth’s ‘literate programming’ style so that documentation and code are in more of a self-explanatory whole.

Read the rest of this entry »


Written by Luke Dunn

December 23, 2018 at 3:36 pm

Posted in Math, programming

Tagged with , , ,