Pure math problem

2008-09-06 6:37 pm
1. Let x,y and z be three positive integers such that x^2+y^2=z^2
(a)Show that at least one of x and y is even.
(b)Show that, if x and y are relatively prime, then one of them is odd and the other is even.

2.Let f(n)=2^n-1,where n is a positive integer.
Prove that "n is a prime number" is a necessary condition for"f(n) is a prime number".

回答 (1)

2008-09-06 8:31 pm
✔ 最佳答案
(1a) Assume both x,y are odd
Case 1: z is even
Let x=2m+1, y=2n+1, z=2k, where m,n,k are integers
(2m+1)^2 + (2n+1)^2 = (2k)^2
4m^2 + 4m + 1 + 4n^2 + 4n + 1 = 4k^2
4(m^2 + n^2 - k^2 + m + n + 1) = 2
=> 4 is a factor of 2 => contradiction

Case 2: z is odd (let z = 2k+1)
(2m+1)^2 + (2n+1)^2 = (2k+1)^2
4m^2 + 4m + 1 + 4n^2 + 4n + 1 = 4k^2 + 4k + 1
4(m^2 + n^2 - k^2 + m + n - k + 1) = 3
=> 4 is a factor of 3 => contradiction

=> At least one of x,y is even

(1b)
(i) x,y cannot be both odd (part a)
(ii) x,y cannot be both even (otherwise not relatively prime)
=> one of x,y is odd and other is even

(2)
Suppose n is not prime, then n=p x q (where both not equals to 1)
(2^n) - 1 = [2 ^ (pq)] - 1 = (2^p)^q -1
Let x = (2^p) [only for simplicity here]
(2^n) -1 = (x^q)-1
=(x-1)[x^(q-1) + x^(q-2) + ... + x + 1]
=> (x-1) = (2^p -1) is a factor of (2^n)-1
=> (2^n)-1 is not prime

Therefore, "n is a prime" is a necessary condition for"f(n) is prime"


收錄日期: 2021-05-03 11:39:56
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20080906000051KK00566

檢視 Wayback Machine 備份