7
$\begingroup$

If it is known that $x^3$ is even, can we say that $x$ is even? It seems to be the case because an odd*odd*odd=odd (if we are dealing with natural numbers). But is there a proof?

$\endgroup$
0

6 Answers 6

15
$\begingroup$

It sounds like you've more or less given a proof without realizing it. Proof by contrapositive

$\endgroup$
9
$\begingroup$

Yes it's a formal proof by contradiction and to be more accurate we write:

assume that $x$ is odd hence $x=2k+1$ for some $k$ and then $$x^3=(2k+1)^3=8k^3+12k^2+6k+1=2(\underbrace{4k^3+6k^2+3k}_{=k'})+1=2k'+1$$ so $x^3$ is odd which's a contradiction.

$\endgroup$
4
  • $\begingroup$ I think this is overkill. If you want to prove that $x^{10}$ is odd when $x$ is odd, would you multiply it out like this? If you do want a formal proof along these lines, it's IMHO better to prove that the product of two odd numbers is odd, and then apply the result twice (to prove that the product of three odd numbers is odd, in particular the cube of an odd number is odd). $\endgroup$ Feb 6, 2014 at 17:44
  • $\begingroup$ @ShreevatsaR I just answered the OP's question " Is there a proof" and I hadn't intention to give an ideal answer either by induction or other. $\endgroup$
    – user63181
    Feb 6, 2014 at 17:52
  • $\begingroup$ @SamiBenRomdhane: Sure, to be clear I don't mean there's anything wrong with this -- it's a perfectly valid proof. I was just pointing out that this proof can be improved further (while also acknowledging that whether it would be an improvement is subjective). Apologies if my comment seemed negative. $\endgroup$ Feb 6, 2014 at 18:09
  • $\begingroup$ @ShreevatsaR You're welcome and thank you for any comments:-) $\endgroup$
    – user63181
    Feb 6, 2014 at 18:12
3
$\begingroup$

Your proof is correct: if $n$ was odd then $n^3$ would be odd as well, so $n$ must be even.

$\endgroup$
2
$\begingroup$

Suppose $x$ is odd. Then 2 does not divide x. So the prime factorization of x does not contain $2$. What can we say about the prime factorization of $x^3$?

$\endgroup$
1
$\begingroup$

Suppose $n^3$ is even. Then $2$ is a prime factor of $n^3$ and therefore $n$. Hence, you actually have $8\mid n^3$ if $n^3$ is even.

$\endgroup$
-1
$\begingroup$

On top of the mathematical proofs, you can try this yourself with very high numbers with a bit of code.

from __future__ import division    

for i in range(0,1000):
    if type((i*i*i)/2)==int:
        print(i)
else:
    print("Done")

With any number you input, you can see it will never find any number that this statement does not hold true for.

http://labs.codecademy.com/ You can try the python code out here if you like.

$\endgroup$
2
  • $\begingroup$ This seems unnecessary and obfuscates the need for a proof. $\endgroup$
    – Dan Rust
    Feb 6, 2014 at 14:49
  • $\begingroup$ This needs to be accompanied by an argument why testing it for just a thousand numbers is enough: $1000$ is not "very high", you know. :-) [Of course, if do make that argument, you'll probably end up showing that testing it for far fewer numbers — eight, maybe — is enough.] $\endgroup$ Feb 6, 2014 at 17:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .