Modulo inverse
general
codechef
prajjwalhacker
March 27, 2019, 4:33am
#1
How to calculate
(( a^(n) - 1 )/(a-1) )%(1e9+7)
Please help anyone !
knakul853
March 27, 2019, 8:05am
#2
@prajjwalhacker
see this
or
this one