Tag: Math

Matrix Quick Pow, China Remainder theorem， and bell equation.
bell[n+p] = (bell[n]+bell[n+1]) % p