Problem 46003. Compute Khinchin's constant
Khinchin's constant
= 2.684542001... (also written "Khintchine's constant") has the amazing property that it is the limiting value of the geometric mean of the partial quotients from a continued fraction expansion of almost all numbers. In other words, if a number x is expanded as
then as ![n approaches infinity](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF0AAAAkCAYAAADrXDbKAAACKklEQVRoge2YUZWDMBBFrwccYAADKKiCOsBBHdRCNVRCPWABDVjofpB3GLKhTShs92PuOfloSSbJ8GYyARzHcRzHcRzHcRzHcRxnpgaqby/iSBrgFJqogDNwif7/K67Ag+McXwMd0/46Jh+86y9/XDL6J+mYNvU07RyenYAxevYNx/fs7/gKuLPcm9ptZa7rSv/71rX1wcDIrO4BaJkcrQmuW4x/SMW+jpe9kUl0LdO+rMDiuW6kHb7WP4uB+a214beMtMZ4W2p4J6owf8/GkDZIsbGdhll81pFd+D0wCVB+OUX9u5JF1NFAKVxcWEZBCTb/fdLi0O42rIUwZmRSboqapeLv4feakhU1EkQ2ZzPJwO83ptx3LzEaiM+LPZuNxlwUta9UaSM7Zx71LxKlPVAeieebwifw35SuqH23Fztfyicxio7s1KcBY2KQfet1rsEDUAocPlyHnL6WXkTFfM7Zim4NRXTW2qxTUwvRGx9yjB3EntWLUum7VKDcb1PMKxU/Qv8sbBiljOqQUKn4DbXvWS42vBYZLA/HOPWurWGkoJyW8ZSSbVXThgkffF6ylXDEjdSmjRvzfnQ7lcJ1btj+qbUoZWUJUrXvMwyM6Vjm8573uW1vjvj2Yi97a82qtmGZanrmS5UuTdl+saVi6tJjn2+tXv4rZ35/4lCuT+2zJl3+jhQKsWUuydbQx6BvVi5HUTGpXj5QCn1FU9jfcRzHcRzHcRzHAfgByqsSgRKppdIAAAAASUVORK5CYII=)
More information is available at Wikipedia, Wolfram MathWorld, the Online Encyclopedia of Integer Sequences, and Numberphile.
Compute Khinchin's constant. The test suite will check for a difference of
.
Solution Stats
Problem Comments
-
1 Comment
Dyuman Joshi
on 4 Jan 2022
This is people finding a way to go around the test case
Solution Comments
Show commentsProblem Recent Solvers15
Suggested Problems
-
5771 Solvers
-
Find the largest value in the 3D matrix
1542 Solvers
-
352 Solvers
-
60 Solvers
-
65 Solvers
More from this Author291
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!