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.

[242.579, 120.747]
[0.668 0.332]

[170.997, 168.919, 162.608, -16.388, -81.975, -60.792, -54.261, 236.975, -95.809]
[ 0.397  0.393  0.378 -0.038 -0.191 -0.141 -0.126  0.551 -0.223]

[187.713, 165.457, 218.44, -71.285, -50.105, 5.022, 118.456]

[ 0.327  0.288  0.381 -0.124 -0.087  0.009  0.206]