I was also wondering if someone could help me find the answers to these simple problems

$\displaystyle -16 mod 3$

$\displaystyle -52 mod 19$

is there a formula to follow for these problems?

Could someone help me get a solution to this probelm.

Compute $\displaystyle 2^{1000000} mod 7$

Repeated Square method might do it.