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: [107.499, 46.989, 52.923, -98.504, 12.47, 176.268, 89.606, 240.138]

A: [ 0.171  0.075  0.084 -0.157  0.02   0.281  0.143  0.383]
****
Q: [166.025, 235.078, 2.082, -93.916, -96.865, 81.476, 212.551, 140.357]

A: [ 0.257  0.363  0.003 -0.145 -0.15   0.126  0.329  0.217]
****
Q: [-31.102, 159.352, 150.315, -11.215, -66.25, 170.643, 194.9]

A:
[-0.055  0.281  0.265 -0.02  -0.117  0.301  0.344]
****