소스 검색

Reciprocal cycles

Adel Qalieh 13 년 전
부모
커밋
01e7003d37
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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