Show that if n is any integer, then gcd(a+nb,b)=gcd(a,b).
I started out by letting d=gcd(a,b) and p=gcd(a+nb,b). I want to show that p=d.
So for integers qi∈Z, i=1,2,3,4,
a=dq1
b=dq2
a+nb=pq3
b=pq4.
Then nb=pq3−a=pq3−dq1. So b=pq3−dq1n. What if n=0?
Since the question says to show that if n is any integer, does the conclusion I reached imply that the statement is false or did I do something wrong?
It is obvious that gcd(a+nb,b)=gcd(a,b) if n=0 but then why do my equations above contradict that?
No comments:
Post a Comment