Jelajahi Sumber

Reciprocal cycles

Adel Qalieh 13 tahun lalu
induk
melakukan
01e7003d37
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      26.py

+ 4 - 0
26.py

@@ -0,0 +1,4 @@
+# List of cyclic fractions for p < 1000 given on Wikipedia
+# Largest repeating cyclic fraction will be p-1
+# Thus, solution is 983
+# http://en.wikipedia.org/wiki/Cyclic_number#Form_of_cyclic_numbers