Recently I was trying some problems related to XOR operation, And I found this problem somewhere(Can't find out now), there is a function defined like this,
$f(i,j)$ = $1$ if i=$0$ or j = $0$
$f(i,j)$ = $f(i-1,j)$ $XOR$ $f(i,j-1)$ else
And we have to calculate $f(i,j)$ for really big numbers which can not be solved by just iteration. Can consider $i,j$ <= $10^{15}$
My Effort:
I was trying to observe something in terms of patterns, that I formed after printing matrix by just iterating over $i$ and $j$, for $20*20$ matrix. I found that it's forming inverted triangles in kind of nested form and of size $2^n-1$, but I still don't know how could I formulate or find a better way to calculate this function in lesser complexity than $O(i*j)$. I am expecting some logarithmic complexity which I am assuming is possible because of above patterns.