|


Using Binomial Expansion to Evaluate [2 + sqrt(3)]^50Date: 11/29/2006 at 10:45:55 From: Matt Subject: Why is (2 + root3)^50 so close to an integer? When you work out (2 + root3)^50, why is it so close to an integer? I have worked out (2 + root3)^50 on a computer and got the answer 39571031999226139563162735373.999999999999999999999999999999999974728 ... I have tried expanding it using all the expansions I know (starting with the binomial expansion) but have had no luck seeing why it comes out so close to an integer. Do you have any ideas?
Date: 11/29/2006 at 11:31:07
From: Doctor Douglas
Subject: Re: Why is (2 + root3)^50 so close to an integer?
Hi Matt.
Are you sure that you're not simply running into roundoff error from
the finite precision of the computer arithmetic? Calculations such as
these on a computer or calculator require considerable care because
they usually don't keep enough significant digits in memory to be
resistant against roundoff errors. This might not matter if you're
only looking for a result to a few significant figures, but if the
question is evaluating how close the original number is to an integer,
one can encounter problems.
Your idea of writing out the original number X using the binomial
expansion is an excellent one:
X = [2 + sqrt(3)]^50 = C(50,0) * 2^50 * sqrt(3)^0
+ C(51,1) * 2^49 * sqrt(3)^1
+ C(52,2) * 2^48 * sqrt(3)^2
+ ... +
+ C(50,50) * 2^0 * sqrt(3)^50
Notice how many of these terms (in particular those with
sqrt(3)^[something even] are integers, and do not affect the
fractional part of X. So we can safely ignore them, as far as the
integer part of X is concerned. Then, notice that everything else is
of the form
D[k] * sqrt(3)^k, D[k] is an integer, k is odd,
where k is odd, and if we subsume all of the even powers of
sqrt(3), we can condense this down to
D[k] * (n) * sqrt(3)^1 k=2n+1, n=0,...,48.
Thus we see that the only terms that affect the fractional part of
X are of the form
E[k] * sqrt(3), E[k]=D[k]*n is an integer,
and the only remaining step is to evaluate the sum
E = E[1] + E[3] + E[5] + ... + E[49].
This should be a lot easier for your computer, since this is
guaranteed to be an integer, and you should be protected somewhat from
roundoff errors. But note that the numbers in the middle of this sum,
say E[27], will have 27 or 28 decimal digits or so, and you will still
have to retain at least this many digits in these integer
computations.
The leading digits of E give you information about how close the
original number X is to an integer. If the leading digits are close
to 1/sqrt(3) = .577350269..., then when finally multiplied by
sqrt(3)^1, the product is near an integer. If E is zero, then X is an
integer (ask yourself, can that happen?).
- Doctor Douglas, The Math Forum
http://mathforum.org/dr.math/
|
Search the Dr. Math Library: |
[Privacy Policy] [Terms of Use]


Ask Dr. MathTM
© 1994-2013 The Math Forum
http://mathforum.org/dr.math/