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: [-40.122, 44.533, 8.372, 33.654, 111.584, 31.907]

A: [-0.211  0.234  0.044  0.177  0.588  0.168]
****
Q: [-19.827, 77.587, 234.377, 197.698, 9.593, -73.61, 243.676]

A: [-0.03   0.116  0.35   0.295  0.014 -0.11   0.364]
****
Q: [-27.624, -22.199, 223.651, 132.348, 238.609, 128.208, 72.394, 236.3, 73.965]

A:
[-0.026 -0.021  0.212  0.125  0.226  0.121  0.069  0.224  0.07 ]
****