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: [240.841, 139.486, 28.367, 224.397, -7.816, 171.664, 120.019]

A: [ 0.263  0.152  0.031  0.245 -0.009  0.187  0.131]
****
Q: [-59.828, 30.296, 154.848, 160.154, -97.69]

A: [-0.319  0.161  0.825  0.853 -0.52 ]
****
Q: [44.957, -46.598, 180.653, 192.376, -5.828, 124.564]

A:
[ 0.092 -0.095  0.369  0.393 -0.012  0.254]
****