In this task, you will be given a list of numbers. The goal is to divide all the numbers in the list by a constant such that the sum of the resulting list is 1. The output should be rounded to 3 decimals.

Q: [-42.256, 243.33, 116.799, 231.776, 218.527, 50.57, 48.628, 228.07, -38.11]

A: [-0.04   0.23   0.11   0.219  0.207  0.048  0.046  0.216 -0.036]
****
Q: [-90.919, 122.785, 19.698, -85.394, -93.418, 154.188, -2.929, -63.746, 221.142]

A: [-0.501  0.677  0.109 -0.471 -0.515  0.85  -0.016 -0.351  1.219]
****
Q: [-43.451, 144.081, 231.32]

A:
[-0.131  0.434  0.697]
****