I was making a Pascal's triangle in AS3.
And in the results I find that, the addition of 1037158320 and 1166803110 yields -2091005866, a negative integer!
This is weird. I first thought that the magnitudes were too great for an int
to hold, but the magnitude of the sum is even greater than the two addends.
And plus, as a number approaches the center of a line of a Pascal's triangle, it should increase, but the one next to -2091005866 was -1961361076, which is closer to the centerm but the magnitude decreases!
Any possible solutions?