Sum of entries made one Assume that I have performed some loop and summed values of $x_i$ and the sum is as follows $$S= \sum_{i=1}^n (x_i *0.0001) = 0.9999$$ 
However I would like to have the sum to be equal to 1 i.e, 
$$\sum_{i} (x_i *0.0001)= 1$$
How much should I add to each of the entires $x_i$ so that I end with sum of values equal to one.
Is the solution the increment to each $x$ 
$$increment = \frac{\frac{0.9999}{0.0001} - \frac{1}{0.0001}}{n}$$
Thanks

$$I_1=\sum _{i=1}^n{x_i}*u=X_1$$
$$I_2=\sum _{i=1}^n{(x_i+ \delta)}*u=X_2$$
$$I_2-I_1=\sum _{i=1}^n{(\delta)}*u=X_2-X_1=\Delta$$
$$ n*\delta={\Delta \over u}$$
$$\delta = { \Delta \over (nu)}$$
For $\Delta=0.0001$ and $u=0.0001$
$$\delta = { 1 \over n}$$
