sum of natural numbers from 1 to n using Carl F Gauss algo