Project Euler Homework
|
Find the value of d < 1000 for which 1/d contains the longest recurring cycle. More...
Go to the source code of this file.
Classes | |
class | bigNum |
Typedefs | |
typedef unsigned long long | verylong |
Functions | |
unsigned | period (unsigned d) |
int | main () |
Variables | |
const verylong | segment_max = 1e13 |
const unsigned | digits_per_segments = 13 |
Find the value of d < 1000 for which 1/d contains the longest recurring cycle.
A unit fraction contains 1 in the numerator. The decimal representation of the unit fractions with denominators 2 to 10 are given:
Find the value of d 1000 for which 1/d contains the longest recurring cycle in its decimal fraction part.
Definition in file 026.cpp.