the answer is two. i answered 0.
which two? :)
RonPurewal Wrote:yes, 2 and 4.
the equality is definitely impossible for negative integers, because 2^(negative integer) is a fraction, while (negative integer)^2 is not. therefore, you don't have to worry about negative integers.
be.a.true.winner Wrote:RonPurewal Wrote:yes, 2 and 4.
the equality is definitely impossible for negative integers, because 2^(negative integer) is a fraction, while (negative integer)^2 is not. therefore, you don't have to worry about negative integers.
Just to confirm, I think if the question did not mention "integers", there would be 3 possible solutions, right Ron?
RonPurewal Wrote:yes, 2 and 4.
hopefully, 2 jumped out at you pretty fast; if n = 2, then the two sides of the equation are 2^2 and 2^2. i'm pretty sure that those are going to be equal.
you'll discover n = 4 through raw experimentation; there isn't any better way, unfortunately.
if you want to be confident that these are the only solutions, you have to watch the behavior of 2^n and n^2 as you get further and further away from 4. the pattern you'll observe is that 2^n begins to grow much, much faster than does n^2, making it clear that the two expressions won't be equal for any larger values.
the equality is definitely impossible for negative integers, because 2^(negative integer) is a fraction, while (negative integer)^2 is not. therefore, you don't have to worry about negative integers.
sachin.w Wrote:my question is how do i know when to stop testing and till when do i need to go on testing.
kindly help.
sachin.w Wrote:This, for sure, is an amazing piece of advice. Thanks a ton, Ron for all the help.