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: [-83.508, -45.974, 241.098, 15.559, 178.455, 21.679, 107.872, 240.156, 244.933]

A: [-0.091 -0.05   0.262  0.017  0.194  0.024  0.117  0.261  0.266]
****
Q: [-18.025, 75.885, 143.488, -95.31, 184.245, -12.36, 172.632, 180.918]

A: [-0.029  0.12   0.227 -0.151  0.292 -0.02   0.273  0.287]
****
Q: [154.183, -31.692, 196.446, 25.687, 213.03, -65.226, 32.581, 8.177, -33.072]

A:
[ 0.308 -0.063  0.393  0.051  0.426 -0.13   0.065  0.016 -0.066]
****