Multiply two large numbers in Java [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . public long Fib(int a1, int a2, int i){ if(i==1){ return a1; }else if(i==2){ return a2; }else{ long l1 = Fib(a1, a2, i-1); long l2 = Fib(a1, a2, i-2); long val = l2 + (l1*l1); return val; } } I wrote this code to find a Modified Fibonacci of function of t(i+2) = t(i) + t(i+1)^2 where t(i) is the answer when we