I'm not completely clear what you are asking. Have you already written the class that generates these Fib values as 4 part array values? Or does your existing code use some other data type?

-----

If you use

BigInteger to generate the fibonacci sequence with f(n+1)=f(n)+f(n-1) then the four array elements can be obtained by dividing the Fib value by the appropriate powers of 10.

On the other hand you could create

*arrF* directly by calculating the next four values based on the previous eight. The important step would be to figure out how to add two integer values like:

Code:

`a*10^0 + b*10^10 + c*10^20 + d*10^30`

c*10^0 + d*10^10 + e*10^20 + f*10^30

The sum will have "components" a+c, b+d, etc. But you have to be careful because, eg, a+c might be >= 10^10. You would have to check for that and possibly "carry" a 1 which would be added to b+d.