day 19: Use mathematical solutions
day 19: Use mathematical solutions

I wasn't doing these at first since I needed to understand what was
going on and write the code in a way that's understandable to me.

Since I do understand now, I've put in the code.

petertseng/adventofcode-rb-2016,petertseng/adventofcode-rb-2016