User:Melab-1/Mod and Floor

a%n=a-floor(a/n)*n