Problem 55330. Convert Periodic Continued Fraction to Fractional Radical Representation

Every periodic continued fraction can be prepresented by a number of the form where p, q, and d are all integers with d>0, , and d not a perfect square. Given the cointued fraction sequence, both the beginning sequence and cyclic part of the sequence [front, cyclic], output the unique p, q, and d (in reduced form). p and q can both be negative.

Solution Stats

20.0% Correct | 80.0% Incorrect
Last Solution submitted on Nov 30, 2022

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers1

Suggested Problems

More from this Author54

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!