Bläddra i källkod

Reciprocal cycles

Adel Qalieh 13 år sedan
förälder
incheckning
01e7003d37
1 ändrade filer med 4 tillägg och 0 borttagningar
  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