Hello chiph588@, I think I've found what you're looking for, namely a sufficient and necessary condition of the divisibility of by a prime in general!

A prime divides if and only if the fractional part for at least one . In particular, when .

For example, and indeed ; ; and so on...

Another example, the one that you gave here is and as you noted , but if you continue .