ArithmeticProgressions solved