Selaa lähdekoodia

Reciprocal cycles

Adel Qalieh 13 vuotta sitten
vanhempi
commit
01e7003d37
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  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