Explorar o código

Reciprocal cycles

Adel Qalieh %!s(int64=13) %!d(string=hai) anos
pai
achega
01e7003d37
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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