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: [245.776, 147.756, 46.081, 137.159, 69.132, -81.718, 135.053, 200.574]

A: [ 0.273  0.164  0.051  0.152  0.077 -0.091  0.15   0.223]
****
Q: [51.967, 80.616, 109.805, 30.339, 162.936, -59.313, -16.193, 61.555, 213.105]

A: [ 0.082  0.127  0.173  0.048  0.257 -0.093 -0.026  0.097  0.336]
****
Q: [-22.135, 228.403, 152.606, 146.153, 234.043, -75.122, 112.718, -37.423, 129.862, -48.78]

A:
[-0.027  0.278  0.186  0.178  0.285 -0.092  0.137 -0.046  0.158 -0.059]
****