Math: Check if input is a factor of target Integer

I guess I was a little misleading there, I’m actually looking for the means to do this in blueprint. I did try to explain my logic in the form of an equation, but I actually don’t know any coding.