Add Galois lab 1
Change-Id: I888fc143dba834e1d4575d4c5c2ed43a4008d5ba
diff --git a/quad9/galois/labs/lab1/utils/inverses.cc b/quad9/galois/labs/lab1/utils/inverses.cc
new file mode 100644
index 0000000..c54a019
--- /dev/null
+++ b/quad9/galois/labs/lab1/utils/inverses.cc
@@ -0,0 +1,13 @@
+#include <iostream>
+
+int main() {
+ int p = 43;
+ for (int i = 1; i < p; ++i) {
+ for (int j = 1; j < p; ++j) {
+ if ((i*j) % 43 == 1) {
+ std::cout << i << "^{-1} = " << j << std::endl;
+ break;
+ }
+ }
+ }
+}