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: [166.754, 127.664, 16.508, -86.602, -58.491, -6.352]

A: [ 1.046  0.8    0.104 -0.543 -0.367 -0.04 ]
****
Q: [-71.628, 49.37, 147.263, 187.318, 67.661, 41.289, 86.789, 88.487]

A: [-0.12   0.083  0.247  0.314  0.113  0.069  0.145  0.148]
****
Q: [20.018, -27.644, -62.63, 225.803, 28.56, 145.694]

A:
[ 0.061 -0.084 -0.19   0.685  0.087  0.442]
****