Arithmetic progressions of squares, cubes and $n$-th powers