Assignment for the course Number Theory and Cryptography
- Dibyadarshan Hota (16CO154)
- Omkar Prabhu (16CO233)
Q 22. Write a MATLAB code to find (a^x + b^y) modulo m where a, b, x, y and m are positive integers.
Run
>> main
main.m
- Main logic of the programfast_modulo_exponentiation.m
- Exponentiates using repeated squaring and taking modulophi.m
- Euler's Totient functionmodulo.m
- modulo operatorgcd_int.m
- greatest common divisor of two numbers using Euclid's algorithm