Project Euler Homework
Classes | Typedefs | Functions | Variables

026.cpp File Reference

Find the value of d < 1000 for which 1/d contains the longest recurring cycle. More...

#include <iostream>
#include <vector>
#include "026_prime_table.h"

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

Detailed Description

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.

 All Classes Files Functions Variables