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: [10.415, 115.448, 48.253, -29.927, -99.808, 100.066, 210.071, 233.739, 247.704]

A: [ 0.012  0.138  0.058 -0.036 -0.119  0.12   0.251  0.28   0.296]
****
Q: [166.754, 127.664, 16.508, -86.602, -58.491, -6.352]

A: [ 1.046  0.8    0.104 -0.543 -0.367 -0.04 ]
****
Q: [99.855, -67.636, 238.538, 166.945, 26.605]

A:
[ 0.215 -0.146  0.514  0.36   0.057]
****
