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: [56.491, -29.468, -4.249, 125.895]

A: [ 0.38  -0.198 -0.029  0.847]
****
Q: [-38.963, 237.606, -71.065, 198.598, -8.485]

A: [-0.123  0.748 -0.224  0.625 -0.027]
****
Q: [-71.393, 77.329, 210.099, 137.704, 162.122, -15.598, -0.209]

A:
[-1.428e-01  1.546e-01  4.202e-01  2.754e-01  3.242e-01 -3.119e-02
 -4.180e-04]
****