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.(adsbygoogle = window.adsbygoogle || []).push({});

[itex]a_{n} = 1 if \ n \ is \ odd \ and \ a_{n} = 2 \ if \ n \ is \ even[/itex]

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

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

Loading...

Similar Threads - Series sorts Return | Date |
---|---|

I Fourier series of Dirac comb, complex VS real approaches | Thursday at 3:38 PM |

I Which x_0 to use in a Taylor series expansion? | Feb 19, 2018 |

B Has anyone seen this logarithmic spiral creation before? | Jan 30, 2018 |

I A summation series | Dec 17, 2017 |

Some sort of transform to find the log of a series | Jun 24, 2011 |

**Physics Forums - The Fusion of Science and Community**