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: [121.797, 148.705, -20.956]

A: [ 0.488  0.596 -0.084]
****
Q: [138.421, 125.821, 245.105, 164.342, 28.3, 37.102]

A: [0.187 0.17  0.332 0.222 0.038 0.05 ]
****
Q: [236.436, 107.458, -65.81, 155.073, 106.741, 120.439, 79.421, 163.684, 103.981]

A:
[ 0.235  0.107 -0.065  0.154  0.106  0.12   0.079  0.162  0.103]
****