Arithmetic progression and equations