{"id":724,"date":"2018-06-26T06:31:15","date_gmt":"2018-06-26T06:31:15","guid":{"rendered":"https:\/\/www.aiproblog.com\/index.php\/2018\/06\/26\/two-more-math-problems-continued-fractions-nested-square-roots-digits-of-pi\/"},"modified":"2018-06-26T06:31:15","modified_gmt":"2018-06-26T06:31:15","slug":"two-more-math-problems-continued-fractions-nested-square-roots-digits-of-pi","status":"publish","type":"post","link":"https:\/\/www.aiproblog.com\/index.php\/2018\/06\/26\/two-more-math-problems-continued-fractions-nested-square-roots-digits-of-pi\/","title":{"rendered":"Two More Math Problems: Continued Fractions, Nested Square Roots, Digits of Pi"},"content":{"rendered":"<p>Author: Vincent Granville<\/p>\n<div>\n<p>These problems are for college undergrads after a first course in calculus. They are provided with solutions, and could be used by college professors as exercises or exam questions.<\/p>\n<p><span style=\"font-size: 14pt;\"><strong>1. Digits of Pi\/4<\/strong><\/span><\/p>\n<p>Prove that in base <em>b<\/em>, if <em>b<\/em>\u00a0is an even integer, <em>n<\/em> > 3, and <em>x<\/em> = Pi\/4, then the <em>n<\/em>-th digit of <em>x,<\/em>\u00a0denoted as <em>a<\/em>(<em>n<\/em>), is given by the formula below. We start with <em>n<\/em> = 1 after the decimal point, for the first digit. Also show that the formula below is not valid if the base <em>b<\/em> is an odd integer, or if <em>x<\/em> is different from Pi\/4.\u00a0<\/p>\n<p><a href=\"http:\/\/api.ning.com\/files\/pbBtn595KOyG-upeRZz*KOBhiewFVdziMpyN3gXi8b1bUnl5-4FK1-XBgZei56AmMk1R3H*LlH1uuw8-uSGUdhpj0beKmJ9n\/Capture.PNG\" target=\"_self\"><img decoding=\"async\" src=\"http:\/\/api.ning.com\/files\/pbBtn595KOyG-upeRZz*KOBhiewFVdziMpyN3gXi8b1bUnl5-4FK1-XBgZei56AmMk1R3H*LlH1uuw8-uSGUdhpj0beKmJ9n\/Capture.PNG\" width=\"244\" class=\"align-center\"><\/a><\/p>\n<p>where the brackets represent the integer part (also called floor) function.<\/p>\n<p><strong>Solution<\/strong><\/p>\n<p>Regardless of the number <em>x<\/em> in [0, 1] and the base <em>b<\/em>, the <em>n<\/em>-th digit <em>a<\/em>(<em>n<\/em>) of <em>x<\/em> can be computed as follows:<\/p>\n<p><a href=\"http:\/\/api.ning.com\/files\/pbBtn595KOwUt30NU9NKlxUPRJKm8gyVIFtBEWLTFJ8xcAkACytg*Ofgd5fDIlSSYqbwWmH3AMUajx51ZO952bzl*FCnxqQ7\/Capture.PNG\" target=\"_self\"><img decoding=\"async\" src=\"http:\/\/api.ning.com\/files\/pbBtn595KOwUt30NU9NKlxUPRJKm8gyVIFtBEWLTFJ8xcAkACytg*Ofgd5fDIlSSYqbwWmH3AMUajx51ZO952bzl*FCnxqQ7\/Capture.PNG\" width=\"178\" class=\"align-center\"><\/a><\/p>\n<p><a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/number-representation-systems-explained-in-one-picture\" target=\"_blank\" rel=\"noopener\">See here<\/a> for details. Thus we have<\/p>\n<p><a href=\"http:\/\/api.ning.com\/files\/pbBtn595KOz7eUHwsVHbVWCFUOfpqEnjbB0diIGAZjg1K0azVkt2zpRJFnCGpkatt5VuNXi6CJGYKho*K*Pz9-5VXekDyuoz\/Capture.PNG\" target=\"_self\"><img decoding=\"async\" src=\"http:\/\/api.ning.com\/files\/pbBtn595KOz7eUHwsVHbVWCFUOfpqEnjbB0diIGAZjg1K0azVkt2zpRJFnCGpkatt5VuNXi6CJGYKho*K*Pz9-5VXekDyuoz\/Capture.PNG\" width=\"244\" class=\"align-center\"><\/a><\/p>\n<p>Using the <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_trigonometric_identities#Angle_sum_and_difference_identities\" target=\"_blank\" rel=\"noopener\">angle difference formula for sinus<\/a>, the fact that <em>n<\/em> > 3, <em>b<\/em> is an even integer, and <em>x<\/em> = Pi\/4, it simplifies to<\/p>\n<p><a href=\"http:\/\/api.ning.com\/files\/pbBtn595KOxieoSznCt80pQt0zg3ITY4Kk-2U-1adfenbcSkAqmRumqBW8Vc2I1MU4Hf1SEekXGzZct7Icy0n0EdNFoARJCe\/Capture.PNG\" target=\"_self\"><img decoding=\"async\" src=\"http:\/\/api.ning.com\/files\/pbBtn595KOxieoSznCt80pQt0zg3ITY4Kk-2U-1adfenbcSkAqmRumqBW8Vc2I1MU4Hf1SEekXGzZct7Icy0n0EdNFoARJCe\/Capture.PNG\" width=\"464\" class=\"align-center\"><\/a><\/p>\n<p>The result for <em>a<\/em>(<em>n<\/em>) follows immediately.<\/p>\n<p><span style=\"font-size: 14pt;\"><strong>2. Continued Fractions and Nested Square Roots<\/strong><\/span><\/p>\n<p>Let us consider the two following expressions, assuming <em>a<\/em> is a strictly positive real number:<\/p>\n<p><a href=\"http:\/\/api.ning.com\/files\/wvNwJta0qsvD63KCYmuJ4fQrSf5imUkQrB5PEoVnrvHJgjCsU6MdgYijJb2xSmF4f*4XghP2wR5rxZo6qfuYYPz65M6vtenS\/Capture.PNG\" target=\"_self\"><img decoding=\"async\" src=\"http:\/\/api.ning.com\/files\/wvNwJta0qsvD63KCYmuJ4fQrSf5imUkQrB5PEoVnrvHJgjCsU6MdgYijJb2xSmF4f*4XghP2wR5rxZo6qfuYYPz65M6vtenS\/Capture.PNG\" width=\"264\" class=\"align-center\"><\/a><\/p>\n<p>Prove that <em>x<\/em> is an integer if and only if <em>a<\/em> is the product of two consecutive integers. Prove that the same is true for <em>y<\/em>.\u00a0<\/p>\n<p><strong>Solution<\/strong><\/p>\n<p>Let&#8217;s focus on the first case. The second case is almost identical. The strictly positive number <em>x<\/em> must satisfy <em>x<\/em>^2 = <em>a<\/em> + <em>x<\/em>, thus <em>x<\/em> = (1 + SQRT(1 + 4<em>a<\/em>)) \/ 2. In order for <em>x<\/em> to be an integer, 1 + 4<em>a<\/em> must be a perfect odd square, which is possible\u00a0 only if <em>a<\/em> is the\u00a0product of two consecutive integers. For instance,<\/p>\n<ul>\n<li>If <em>a<\/em> = 1 * 2, then <em>x<\/em> = 2<\/li>\n<li>If <em>a<\/em> = 2 * 3, then <em>x<\/em> = 3<\/li>\n<li>If <em>a<\/em> = 3 * 4, then <em>x<\/em> = 4<\/li>\n<li>If <em>a<\/em> = 4 * 5, then <em>x<\/em> = 5<\/li>\n<li>and so on.<\/li>\n<\/ul>\n<p>Note that the expansion of the number <em>x<\/em> = 2 in the nested square root numeration system, when <em>x<\/em> tends to 2, has all its &#8220;digits&#8221; equal to <em>a<\/em> = 1 * 2. See <a href=\"http:\/\/api.ning.com\/files\/wvNwJta0qsuoDbBefTIzpffIC9SKp7Mg3kq5pRXkVuu3jdctZhjBoU3URszP4LQWv-ewLw4zcAVxdjd3lB1GBcMzN4Ovkjtl\/num.xlsx\" target=\"_self\">this spreadsheet<\/a>\u00a0for details. More on this <a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/number-representation-systems-explained-in-one-picture\" target=\"_blank\" rel=\"noopener\">here<\/a>.\u00a0<\/p>\n<p><em>For related articles from the same author,\u00a0<a href=\"http:\/\/www.datasciencecentral.com\/profiles\/blogs\/my-data-science-machine-learning-and-related-articles\" target=\"_blank\" rel=\"noopener\">click here<\/a><span>\u00a0<\/span>or visit<span>\u00a0<\/span><a href=\"http:\/\/www.vincentgranville.com\/\" target=\"_blank\" rel=\"noopener\">www.VincentGranville.com<\/a>. Follow me on<span>\u00a0<\/span><a href=\"https:\/\/www.linkedin.com\/in\/vincentg\/\" target=\"_blank\" rel=\"noopener\">on LinkedIn<\/a>.<\/em><\/p>\n<p><strong>Related article<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/www.analyticbridge.datasciencecentral.com\/profiles\/blogs\/mathematical-olympiads-for-undergrad-students\" target=\"_blank\" rel=\"noopener\">Mathematical Olympiads for Undergrad Students<\/a><\/li>\n<\/ul>\n<p><span style=\"font-size: 14pt;\"><b>DSC Resources<\/b><\/span><\/p>\n<ul>\n<li><a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/fee-book-applied-stochastic-processes\">Free Book: Applied Stochastic Processes<\/a><\/li>\n<li><a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/comprehensive-repository-of-data-science-and-ml-resources\">Comprehensive Repository of Data Science and ML Resources<\/a><\/li>\n<li><a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/advanced-machine-learning-with-basic-excel\">Advanced Machine Learning with Basic Excel<\/a><\/li>\n<li><a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/difference-between-machine-learning-data-science-ai-deep-learning\">Difference between ML, Data Science, AI, Deep Learning, and Statistics<\/a><\/li>\n<li><a href=\"https:\/\/www.datasciencecentral.com\/profiles\/blogs\/my-data-science-machine-learning-and-related-articles\">Selected Business Analytics, Data Science and ML articles<\/a><\/li>\n<li><a href=\"http:\/\/careers.analytictalent.com\/jobs\/products\">Hire a Data Scientist<\/a><span>\u00a0<\/span>|<span>\u00a0<\/span><a href=\"http:\/\/www.datasciencecentral.com\/page\/search?q=Python\">Search DSC<\/a><span>\u00a0<\/span>|<span>\u00a0<\/span><a href=\"http:\/\/classifieds.datasciencecentral.com\/\">Classifieds<\/a><span>\u00a0<\/span>|<span>\u00a0<\/span><a href=\"http:\/\/www.analytictalent.com\/\">Find a Job<\/a><\/li>\n<li><a href=\"http:\/\/www.datasciencecentral.com\/profiles\/blog\/new\">Post a Blog<\/a><span>\u00a0<\/span>|<span>\u00a0<\/span><a href=\"http:\/\/www.datasciencecentral.com\/forum\/topic\/new\">Forum Questions<\/a><\/li>\n<\/ul>\n<\/div>\n<p><a href=\"https:\/\/www.datasciencecentral.com\/xn\/detail\/6448529:BlogPost:738437\">Go to Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Author: Vincent Granville These problems are for college undergrads after a first course in calculus. They are provided with solutions, and could be used by [&hellip;] <span class=\"read-more-link\"><a class=\"read-more\" href=\"https:\/\/www.aiproblog.com\/index.php\/2018\/06\/26\/two-more-math-problems-continued-fractions-nested-square-roots-digits-of-pi\/\">Read More<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":725,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[26],"tags":[],"_links":{"self":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/posts\/724"}],"collection":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/comments?post=724"}],"version-history":[{"count":0,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/posts\/724\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/media\/725"}],"wp:attachment":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/media?parent=724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/categories?post=724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/tags?post=724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}