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: [37.56, 31.057, 59.096, -46.118, 99.306, 103.058, -66.785, 166.311]

A: [ 0.098  0.081  0.154 -0.12   0.259  0.269 -0.174  0.434]
****
Q: [123.275, 156.341, 242.486]

A: [0.236 0.299 0.464]
****
Q: [228.622, 66.015, 102.996, 196.889, 39.151, 247.28, -75.554, 52.246, -41.499, 153.809]

A:
[ 0.236  0.068  0.106  0.203  0.04   0.255 -0.078  0.054 -0.043  0.159]
****