Programming Resources
For Fun and Learning
Charles Cusack
Computer Science
Hope College
main

Python
C++
JAVA
PHP
SQL

Assignments


CS255Code


ModPower.java

public class ModPower {

	/**
	 * Compute a^b mod n
	 * @param a the base
	 * @param b the exponent
	 * @param n the modulus
	 * @return a^b mod n
	 */
	public static long compute(long a, long b, long n) {
		return 1;
	}
}