title: Evenly distributing n points along a line
body: <p>I'd like to know which formula am I supposed to use in order to distribute n points along a line so they are uniformly distribute.</p>
  <p>Note: length/2 &lt;= n &gt; 0</p>
  <p>The distance between the points have to be the same, so:</p>
  <p>For length = 10, points = 1:
  ----0-----</p>
  <p>For length = 10, points = 2:
  --0----0--</p>
  <p>For length = 10, points = 3:
  -0--0--0-- (Note how you always &quot;start&quot; by the left, if you started from the right, it'd be like this: --0--0--0-)</p>
  <p>For length = 10, points = 5:
  0-0-0-0-0-0</p>
  <p>For length = 10, points 7:
  It's not possible, 7 is bigger than length/2</p>