public static long GetSolutionOfProblem65() { var n = 100; var listOfFractions = InfiniteContinuedFractionHelper.FirstNIterationOfE(n); return(NumberHelper.SumOfDigits(listOfFractions.Last().Numerator)); }
public static long GetSolutionOfProblem57() { var max = 1000; var listOfFractions = InfiniteContinuedFractionHelper.FirstNIterationOfSquareRootOfTwo(max); return(listOfFractions.Where(fraction => fraction.Numerator.ToString().Length > fraction.Denominator.ToString().Length).ToList().Count); }