Basic solution to progression problem; doesn't handle the crazy
large numbers that the official output has, but I'm too lazy to
make a BigNum class