1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Even/odd indicator function

  1. Jun 26, 2011 #1
    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

    but I'm not sure if this would be considered acceptable mathematical notation.
  2. jcsd
  3. Jun 26, 2011 #2


    User Avatar
    Science Advisor

    What about
    [tex]\frac{(-1)^n+ 1}{2}[/tex]
  4. Jun 26, 2011 #3


    User Avatar
    Science Advisor
    Homework Helper

    (1 + (-1)n)/2 ?

    δ(sin(nπ)) ? :smile:
  5. Jun 26, 2011 #4
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook