Whats the logic behind the series : 0,1,7,28,84,210,426,924 and so on..
As I figured it, it is basically sum of consecutive terms of (5+r)Cr where r range from 0 to whatever term I need to find(my requirement is 999998). I need to calculate this series till 10^6 which will certainly overflow by this method. Any other logic or technique?
It seems to me that $426$ is a mistake. If we have $462$ instead of $426$, then this sequence could be the following.
$$a_n= \binom{n+4}{6}$$
From $n=1$ to $15$ it gives the following sequence (A000579):
$$0, 1, 7, 28, 84, 210, 462, 924, 1716, 3003, 5005, 8008, 12376, 18564, 27132.$$
You could find other possible solutions at OEIS.
$$a_{999998} = \binom{999998+4}{6} = 1388884722215277798611116666650000.$$
You can calculate the whole sequence in an arbitrary range for example with Maple, with this code:
This sample code gives you the sequence in the range $n=1$ to $1000$.