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: [2.303, 132.257, 184.015, 78.61, 124.58, 224.719, 114.614, 209.731, 242.313]

A: [0.002 0.101 0.14  0.06  0.095 0.171 0.087 0.16  0.185]
****
Q: [-22.771, 214.763, -40.308, 84.107]

A: [-0.097  0.911 -0.171  0.357]
****
Q: [89.44, 100.427, 183.811, -17.306, 24.885, 77.405, 102.976, -66.378, -31.267, -95.57]

A:
[ 0.243  0.273  0.499 -0.047  0.068  0.21   0.28  -0.18  -0.085 -0.259]
****
