How to calculate 2^1040 mod 131.

How to calculate2^1040 mod 131.(this question is asked in cat2012)

How to calculate

2^1040 mod 131.

(this question is asked in cat2012)