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: [1.805, -60.45, 43.643, -2.569, 163.214]

A: [ 0.012 -0.415  0.3   -0.018  1.121]
****
Q: [245.921, -55.19, 221.71, -39.045, -28.374]

A:
[ 0.713 -0.16   0.643 -0.113 -0.082]
****