Can someone help splitting a range into equal parts

7.1k Views Asked by At

I have been stuck with a problem.

I been presented a range from 10k to 3000k.

I need to split this into ten sections. I go to do the math and things are not working out, can someone show me what i need to do an offer guidance because, i need to do this for a much more diffrent set of information.

1

There are 1 best solutions below

0
On

So you have a length that is $300 - 10=290$ km long. If you split this into $10$ sections each section will be $290 \div 10 = 29$km long.

So the first one starts and $10$ and ends at $10+29=39$. ANd the second one starts and $39$ and ends at $39 + 29 = 68$. And so on...

Google Off by One error or Fencepost problem to be aware of intuitive but incorrect traps that people commonly fall for with they try to do these types problems.

https://en.wikipedia.org/wiki/Off-by-one_error