I'm trying to find if a number is odd or not, basically if X % 2 = 1.(adsbygoogle = window.adsbygoogle || []).push({});

Can this be expressed through some function? Like the sum of 1 + 2 .. +n is n(n+1) /2

Or as a Riemann sum?

I'm trying to add only the odd numbers from a random set of N integers to a sum.

**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!

# Finding if an integer is odd through Riemann or some function?

Loading...

Similar Threads - Finding integer through | Date |
---|---|

I How to find admissible functions for a domain? | Jan 31, 2018 |

Finding integer numbers using basic operations | Feb 3, 2011 |

Finding integer points | Nov 24, 2006 |

Need desparate help on this question concerning finding a positive integer | Mar 14, 2005 |

Finding integers | Mar 13, 2005 |

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