Is there a shorthand for an indicator function of a positive integer?

  • Level: Graduate 
  • Thread starter bruno67
  • Start date
  • Tags Tags
    Function
3 replies · 5K views · last reply
bruno67
Messages
32
Reaction score
0
Is there a convenient shorthand for an "indicator function" of a positive integer n which vanishes if n is odd and is equal to 1 otherwise? I was thinking about something like

[tex]\mathbb{1}_{\{\mathrm{mod}(n,2)=0\}}(n),[/tex]
but I'm not sure if this would be considered acceptable mathematical notation.