Thread: Problem 50
View Single Post
  #8  
Old November 22nd, 2008, 04:46 AM
David24 David24 is offline
Banned
 
Join Date: Nov 2008
Posts: 82
Country:
Thanks: 0
Thanked 25 Times in 25 Posts
David24 is on a distinguished road
Default

Quote:
Originally Posted by CaptainBlack View Post
Well lets see,

|x-2|=|x-2^{16}|

implies (assuming 2 \le x \le 2^{16} anyway) that:

x-2=2^{16}-x

or:

x=2^8-1

Now lets do some calculations:

Code:
>i=1:16;
>
>x=[2^8-1:2^8+1]'
          255 
          256 
          257 
>
>s=abs(x-2^i);
>S=sum(s)
       130052 
       130050 
       130050 
>
So we conclude that, no your proposed condition does not define the solution.

CB
CaptainBlack,

Thanks for your response, I will have to keep working on it.