This is bugging me, I feel like there's gotta be some simple answer but I can't seem to get it.
Show that if \(n\) is odd, then: \(\gcd(n,n+2)=1\)
oh i got it
umm okay how about we just think about in multiple sense
if its the the multiple of some prime u know that there has to be that prime difference atleast
nd the only prime difference with 2 differences are 2, and this is odd so
does that make sense?
so for example if u have 15 and 17 now 3 ,5 divide 15 but u know 3 cannot divide 17 because there a difference of 2 and 5 cannot dice it because again a diff of 2
similarly all the primes that divide some odd number cannot divide another odd number just 2 away, as they shud all have remainders building up as all the odd primes 3 or more
just think about multiples of primes
theres no way another multiple of the same prime will exist just 2 away
for odd ofc
GCD(n,n+2)=2, if n is even?
yup
I think I get what you're saying, like since the gap is smaller than 3 (the first prime they could share in common) then they have to be relatively prime? I guess this makes sense but I don't know if I'm 100% convinced for some reason haha.
\[\gcd(n,n+2)=\gcd(n,2)=1,2, |n| \\ \text{ but } 2 \text{ is not a factor of } n \\ \text{ so } \gcd(n,2) \neq 2 \\ \\ \text{ in order for } \gcd(n,2)=|n| \\ \text{ we would have to have } \\ \text{ that } |n| \text{ is a factor of } 2 \\ \text{ which means } |n|=1 \text{ or } |n|=2 \\ \text{ but we already said } n \neq 2 \\ \text{ so } |n|=1 \]
yah
like it has to be true
think about it
Ok here I got a way of showing it that convinces myself: Suppose \(p\) divides \(n\) and \(n+2\) then that means I can write \(n=pa\) and \(n+2=pb\) so: \[n+2=n+2\] \[pa+2=pb\] that means \(p=2\) is the only prime that works, cause 2 has to also be divisible by p.
all other prime multiple of the other number will generate a remainder
okay yep thats pretty much same thing
so now u know there has to be this remainder
as p is greather than 2
Oh wow ok I should be thinking like @freckles is, I didn't even think about this: \[\gcd(n,n+2)=\gcd(n,2)\] ok in terms of remainders and the Euclidean algorithm this makes sense
oh i can see why that formula is true hehe :D
thanks everyone :D
pls medul
+fAN
hmmm... to medal dan or to not
that is the question
w o w
:D
learn to medal all nub
:D
pls im not an os hacker
dan likes medal parties
the more you reply here the higher your engagement score gets, probably, right?
I should suspend dan probably right
we can suspend him now and then unsuspend him in 30 cat seconds
So this has been solved?
Join our real-time social learning platform and learn together with your friends!