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: [-89.49, 249.56, 48.075, 221.189, 0.896, 46.342]

A: [-0.188  0.524  0.101  0.464  0.002  0.097]
****
Q: [-84.386, 163.217, 23.493, 1.719, 243.887, 172.585, 88.037, 151.948]

A: [-0.111  0.215  0.031  0.002  0.321  0.227  0.116  0.2  ]
****
Q: [220.491, 29.667, 95.659]

A:
[0.638 0.086 0.277]
****