Thursday, 26 July 2018

elementary number theory - Showing gcd(n3+1,n2+2)=1, 3, or 9



Given that n is a positive integer show that gcd(n3+1,n2+2)=1, 3, or 9.



I'm thinking that I should be using the property of gcd that says if a and b are integers then gcd(a,b) = gcd(a+cb,b). So I can do things like decide that gcd(n3+1,n2+2)=gcd((n3+1)n(n2+2),n2+2)=gcd(12n,n2+2) and then using Bezout's theorem I can get gcd(12n,n2+2)=r(12n)+s(n2+2) and I can expand this to r(12n)+s(n2+2)=r2rn+sn2+2s However after some time of chasing this path using various substitutions and factorings I've gotten nowhere.




Can anybody provide a hint as to how I should be looking at this problem?


Answer



As you note, gcd(n3+1,n2+2)=gcd(12n,n2+2).



Now, continuing in that manner,
gcd(12n,n2+2)=gcd(2n1,n2+2)=gcd(2n1,n2+2+2n1)=gcd(2n1,n2+2n+1)=gcd(2n1,(n+1)2).



Consider now gcd(2n1,n+1). We have:
gcd(2n1,n+1)=gcd(n2,n+1)=gcd(n2,n+1(n2))=gcd(n2,3)=1 or 3.



Therefore, the gcd of 2n1 and (n+1)2 is either 1, 3, or 9. Hence the same is true of the original gcd.


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find limh0sin(ha)h without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...