Naive implementation going up to 2x
Simpler implementation
Simpler implementation
Solution for 1x to 6x