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: [-97.301, 130.939, 7.862, 241.283, -8.481, -45.554, 69.159, 123.499]

A: [-0.231  0.311  0.019  0.573 -0.02  -0.108  0.164  0.293]
****
Q: [-97.117, -11.802, 57.096, 244.554, 14.606, 59.864, 209.204, 204.511, 5.218]

A: [-0.142 -0.017  0.083  0.356  0.021  0.087  0.305  0.298  0.008]
****
Q: [151.983, 28.208, -48.263, 142.031, -38.594, 125.313]

A:
[ 0.421  0.078 -0.134  0.394 -0.107  0.347]
****