This post is a playful combination of maths and computing to design “traps for numbers”. Here is the accompanying code to this post along with its tests. Collatz sequence Many classical problems in maths can be given a new twist with the help of computers, resulting in surprising results. One of these problems is the …