Is there a established notation for the remainder of integer division?
For example, I want a function gives zero for non-negative even integers and one for non-negative odd integers. In computer code I would write:
i % 2
But if I want to do something similar in a paper, on Latex, how should I write it? I want to use this as part of a larger expression. Something like:
but I don't think that is the customary way?