I was doing a small numbercal analysis problem that required the use of huge numbers. At first i was surprised that my code didn't work, even after double and triple checking, and after tracing the programme, i found out the mistake that i did. Firstly i used integers, and when the numbers started to increase they went bigger than the integer number range on C++ and started to give a negative number. Anyways, i used long and it worked ok for most of the numbers that needed calculations, but still some iteration couldn't be done since they also went out of range. How could i solve this problem?