• nova_ad_vitum@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    Sorry if this is stupid but how to deal with sums to odd numbers ? Won’t you have a number left over after pairing all the others?

    • LordGimp@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      ·
      9 months ago

      Add the last number onto the end. So the sum of all numbers between 1 and 101 is 50 pairs of 101 plus one extra 101 and the end. It’d end up being 5050 + 101 or 51x101 or 5151