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: [241.151, -67.168, 161.913, 68.409, -5.213, 66.258, 70.05, 38.39, 30.598]

A: [ 0.399 -0.111  0.268  0.113 -0.009  0.11   0.116  0.064  0.051]
****
Q: [-95.052, 44.855, 168.107, -59.536, 54.077, 225.341]

A: [-0.281  0.133  0.498 -0.176  0.16   0.667]
****
Q: [-72.49, 182.662, 187.579, 224.491, 206.961, -16.631, 107.328, 46.42]

A:
[-0.084  0.211  0.217  0.259  0.239 -0.019  0.124  0.054]
****