Approximate while you can

Given that m m and n n are natural numbers and among all possible rational numbers with the restriction ( m + n ) < 150 (m + n) < 150 , m n \frac{m}{n} is the best approximation of 14 \sqrt{14} then what is n n ?

Use: 14 = 3.741657387... \sqrt{14} = 3.741657387. . .


The answer is 31.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Trevor B.
Jan 20, 2016

We can solve this question with continued fractions. The following algorithm can be used to find continued fraction approximations.

Take the integer part of the number. This is the first term in the sequence. Then take the reciprocal of the fractional part. Repeat indefinitely, appending terms to the continued fraction as necessary.

You can read more about continued fractions here .


n k n k n k n k n k + 1 = 1 n k n k 14 3 14 3 14 + 3 5 14 + 3 5 1 14 2 5 14 + 2 2 14 + 2 2 2 14 2 2 14 + 2 5 14 + 2 5 1 14 3 5 14 + 3 14 + 3 6 14 3 14 + 3 5 \begin{array}{|c|c|c|c|} \hline n_k & \lfloor n_k\rfloor & n_k-\lfloor n_k \rfloor & n_{k+1}=\frac{1}{n_k-\lfloor n_k\rfloor}\\ \hline \sqrt{14} & 3 & \sqrt{14}-3 & \frac{\sqrt{14}+3}{5} \\ \hline \frac{\sqrt{14}+3}{5} & 1 & \frac{\sqrt{14}-2}{5} & \frac{\sqrt{14}+2}{2} \\ \hline \frac{\sqrt{14}+2}{2} & 2 & \frac{\sqrt{14}-2}{2} & \frac{\sqrt{14}+2}{5} \\ \hline \frac{\sqrt{14}+2}{5} & 1 & \frac{\sqrt{14}-3}{5} & \sqrt{14}+3 \\ \hline \sqrt{14}+3 & 6 & \sqrt{14}-3 & \frac{\sqrt{14}+3}{5} \\ \hline \end{array}

Note the repetition of 14 + 3 5 \frac{\sqrt{14}+3}{5} here. The terms will repeat, and the integer part of n k n_k will repeat according to the pattern { 1 , 2 , 1 , 6 } \{1,2,1,6\} after the initial 3. 3. Thus, 14 = [ 3 ; 1 , 2 , 1 , 6 ] . \sqrt{14}=[3;\overline{1,2,1,6}]. We can use this to approximate 14 \sqrt{14} with arbitrary precision. The first few approximations are as follows: 3 1 , 4 1 , 11 3 , 15 4 , 101 27 , 116 31 , 333 89 . \frac{3}{1},\frac{4}{1},\frac{11}{3},\frac{15}{4},\frac{101}{27},\frac{116}{31},\frac{333}{89}. 116 31 \frac{116}{31} is the closest approximation that still has a numerator and denominator sum to less than 150 , 150, so the answer is 31 . \boxed{31}.

Moderator note:

Not quite. The continued fraction tells us that if m k n k \frac{m_k}{n_k} is the partial continued fraction, then it is the best approximation where the denominator is at most n k n_k . Technically, for completeness, you would have to check for denominators slightly larger than 31.

Rajen Kapur
Jan 19, 2016

To find rational approximation of 14 \sqrt{14} , we first find the rational number closest to fractional part of 14 \sqrt{14} or 0.7416573. . . or some ratio slightly less than 0.742 = 742 1000 = 371 500 . 0.742 = \frac{742}{1000} = \frac{371}{500}. Obviously accepting the ratio 371 500 \frac{371}{500} would violate the given restriction on total of (m + n). Let us tackle this problem by finding a solution for 371 x 500 y = 1 371x - 500y = 1 by well known techniques which works out to x = 31 , y = 23 x = 31, y = 23 , meaning that 23 31 \frac{23}{31} is nearest approximation of fractional part. The answer is 31.

U s i n g a c a l c u l a t o r , x n n 14 = N . S i n c e 120 30 = 4 , w e s t a r t o u r t r i a l s w i t h b i g g e s t p o s s i b l e x f o r b e s t r e s u l t . x = 149 , n = 31 , N = . 06479. W e a r e s u r e t h a t t h i s i s t h e b e s t r e s u l t s i n c e t h e r e i s a s i g n c h a n g e o f N f r o m n = 30 t o n = 32. x = 148 , n = 31 , N = . 0325.... W e a r e s u r e t h a t t h i s i s t h e b e s t r e s u l t s i n c e t h e r e i s a s i g n c h a n g e o f N f r o m n = 30 t o n = 32. x = 147 , n = 31 , N = . 0027809. W e a r e s u r e t h a t t h i s i s t h e b e s t r e s u l t s i n c e t h e r e i s a s i g n c h a n g e o f N f r o m n = 30 t o n = 32. x = 146 , n = 31 , N = . 03.... W e a r e s u r e t h a t t h i s i s t h e b e s t r e s u l t s i n c e t h e r e i s a s i g n c h a n g e o f N f r o m n = 30 t o n = 32. I t i s c l e a r t h a t x < 146 w i l l n o t g i v e b e t t e r r e s u l t s . S o n = 31. Using~ a~ calculator,~~ \dfrac{x-n} n- \sqrt{14}=N.\\ Since~\dfrac{120}{30}=4, ~we~start~our~trials~with~biggest~possible~x~for~best~result.\\ x=149,~~n=31, ~N=.06479.~We~are~sure~that~this~is~the~best~result~since~there ~is~a~sign~change~of~N~from~n=30~to~n=32.\\ x=148,~~n=31, ~N=.0325....~We~are~sure~that~this~is~the~best~result~since~there ~is~a~sign~change~of~N~from~n=30~to~n=32.\\ x=147,~~n=31, ~N=.0027809.~We~are~sure~that~this~is~the~best~result~since~there ~is~a~sign~change~of~N~from~n=30~to~n=32.\\ x=146,~~n=31, ~N=.03....~We~are~sure~that~this~is~the~best~result~since~there ~is~a~sign~change~of~N~from~n=30~to~n=32.\\ It~ is~ clear~ that~ x<146~~ will~not~give~better~results.\\ So~n=\color{#D61F06}{31}.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...