this is my code
i have used to matrix exponention to caluculate Jacobsthals Numer and then
use the formula nth Jabosthals*sum od all array term(+or-)a[i]
find new value.
it seem i have something wrong with mod
please look into it
i also saw past discussions with some formula
please explain how to solve this…