Series of sorts- Return 1 or 2 based on even or odd n

  • Level: High School 
  • Thread starter Thread starter connordurkin
  • Start date Start date
  • Tags Tags
    even Series
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
3 replies · 2K views
connordurkin
Messages
2
Reaction score
0
I would like to create a series where for each term if n is odd the term =1 and if n is even, the term = 2. I.e.

[itex]a_{n} = 1 if \ n \ is \ odd \ and \ a_{n} = 2 \ if \ n \ is \ even[/itex]
 
Physics news on Phys.org
Can anyone help me come up with some a_n such that this is true?