If 2 numbers A and B are selected from the set of first 100 natural numbers then in how many ways,
\(a^2-b^2\) is divisible by 3?
Lets try.. Numbers are of form: 3k,3k+1,3k+2 Squared numbers are of form: \[(3k)^2=9k^2\] \[(3k+1)^2=9k^2+6k+1=3k(3k+2)+1\] \[(3k+2)^2=9k^2+12k+4=3k(3k+4)+4\]
Remember, \(r\in \{0,1,2\}\)
yup
4 = 3+1
what do you mean?
\[ 4\equiv 1 \pmod 3 \]
didn't get what that meant since morning :p
You don't know what modulus is, but you know what divisibility is?!
I know modulus but what are you relating here I'm not getting
I'm saying that the remainder of \((3k+2)^2\) is \(1\) rather than \(4\).
how ? :/
okay yes
got it 4=1+3 :P
You're killing me!
So squared numbers are of form : 3k,3k+1,3k+1 (do i need to write this twice?)
Writing it twice can help.
Let us consider all the cases now :D 1)A of form 3k,B of form 3k 2)Both of form 3k+2 3)A of form 3k+1,B of 3k+2 4)A of form 3k+2,B of form 3k+1
No, which combinations of these remainders has remainder 0?
Now^
Did I leave any case?
There were \(3\times 3\) cases.
i am still getting confused :/
There are \(9\) cases.
The question is "a^2-b^2" divisible by 3 where did we use that info?I mean same solution for a^2+b^2 ? why did we compute the squared form of numbers? we dont have 3k+2 in that but then how can we assume it in the cases
\((3k+2)^2=3k'+1\)
Okay, so when considering the TOTAL cases, what we consider is how many remainders \(a\) could have (3) and how many \(b\) can have(3). Combine this and you get \(3\times3=9\) cases.
The next step is to find out which of those \(9\) cases end up being divisible by three.
yes
As it turns out, there are only two possible remainders you can get after squaring: 0 and 1.
yes!
Now, we need to consider the cases: 0+0 = 0 0+1 = 1 1+0 = 1 1+1 = 2
Now, 1+1=2 isn't divisible by 3 because it doesn't have remainder of 0. But hypothetically if it WAS divisible by 3.. Then it since there are 2 ways to have remainder 1 ( 3k+1, 3k+2 ) Then the ways to get 1+1 is \(2\times2=4\)
Fortunately the only case divisible by \(3\) is: \(0+0=1\) There is only \(1\times 1=1\) ways for this to happen.
thought: will we get same answer if question says a^2 "+" b^2 ?
Oh wait.. it should be -?
Yeah, that is a big difference!
0-0 = 0 1-0 = 1 0-1 = -1 1-1 = 0
So 0-0 and 1-1 are divisible by 3 in this case.
0-0 happens \(1\times1=1\) ways 1-1 happens \(2\times2=4\) ways
So \(5\) out of \(9\) ways!
that is what I was thinking :| but \[(3k+1)^2-(3k+2)^2=1+6k-(4+6k)=-3\] if we take A of form 3k+1 and B of form 3k+2
-3 :|
\(\color{blue}{\text{Originally Posted by}}\) @DLS that is what I was thinking :| but \[(3k+1)^2-(3k+2)^2=1+6k-(4+6k)=-3\] if we take A of form 3k+1 and B of form 3k+2 \(\color{blue}{\text{End of Quote}}\) \[ (3k+1)^2-(3k+2)^2=3k'+1 - (3k'+1)=0 \]
what just happened?
Ugh...
Okay, so get this: we ONLY need to worry about the REMAINDER
yes true so :o
So why are you worrying about other pellet?
About other \(\text{pellet}\)?
About other \(\text{sh} \text{it}\)
but it is giving negative remainder .-.
If it is giving a negative remainder then: 3-r = ?
3-1 = 2, the remainder is 2
Or rather remainder -1 becomes remainder 2
okay i got evt
What I would do is this: only consider the cases where a>b
then double that result for b>a
seems a good idea
Join our real-time social learning platform and learn together with your friends!