Math Question

How do I write: “if p is a multiple of 7”

so basically that something will happen when the number is 0, 7, 14, 21 etc.?

my guess is, is that’s something like: if p/7 = wholenumber

any ideas?