does the calculator have modulo?
I think so....hit the 2nd button upper left.... one of the buttons on the R is marked MOD