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: [21.308, 231.59, 241.191, 130.902, 17.695, -23.559, -91.242, 125.559, 145.341]

A: [ 0.027  0.29   0.302  0.164  0.022 -0.029 -0.114  0.157  0.182]
****
Q: [-67.573, 107.519]

A: [-1.692  2.692]
****
Q: [56.345, -71.526, 163.534, 45.488, 161.533, 4.674, 190.511, -36.911]

A:
[ 0.11  -0.139  0.318  0.089  0.314  0.009  0.371 -0.072]
****