Determine, in terms of $n$, the length of the longest base-$n$ arithmetic progression that does not contain the digit 0.