Convert Periodic Continued Fraction to Fractional Radical Representation - MATLAB Cody - MATLAB Central

Problem 55330. Convert Periodic Continued Fraction to Fractional Radical Representation

Difficulty:Rate
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
Registration Now Open for MathWorks AUTOMOTIVE CONFERENCE 2025
...
Hello Community, We're excited to announce that registration is now open for the...

Problem Recent Solvers1

Suggested Problems

More from this Author57

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page