Squares in arithmetic progressions