About Factors of numbers

2007-10-14 2:42 pm
Question:
Suppose that a and b are integers and that a|b and b|a.
Prove that a=b or a=-b.

My answer to the question:
Since a|b there is an integer z such that b=a*z
Since b|a there is an integer w such that a=b*w
Substitute b=a*z to a=b*w,
a=a*z*w
a/a=z*w
z*w=1

Multiply b=a*z and a=b*w,
a*b=a*z*b*w
a*b=a*b*(z*w)
a*b=a*b*1
a*b=a*b

Then I am stuck from here, I cannot figure out how to prove a=b and a=-b from this point. Can you help me please?

回答 (1)

2007-10-14 4:10 pm
✔ 最佳答案
Since a|b there is an integer z such that b=a*z
Since b|a there is an integer w such that a=b*w
Substitute b=a*z to a=b*w,
a=a*z*w
a/a=z*w
z*w=1
去到呢步, 得
z = 1 or z = -1, 兩個 integers 乘埋係一, integers 大過一都做唔到
so, a=b or a=-b
只差小小, 就係呢度諗唔到,你差唔多做證完


收錄日期: 2021-04-26 17:58:24
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20071014000051KK00730

檢視 Wayback Machine 備份