int inverse(int a) { if (a == 0) { //ArithmeticException throw ArgumentError(); } return _expTable[_modulus - _logTable[a] - 1]; }