Help!
Two numbers are selected from the set of first 100 natural numbers then find total ways in which \(\large a^2+b^2\) is dividisble by 7.
@ganeshie8 @Psymon @shubhamsrg
Okay, here is one trick you can try...
Consider only the final digit of each number!
wont work..
\[ 1,1 \to 1+1=2\\ 1,2\to 1+4=5\\ ... \]
Why not?
There are \(^{10}C_2\) combos.
I actually want to understand the original solution.. its like.. Numbers are of form: 7k,7k+1,7k+2,7k+3,7k+4.. and then similarly they computed squares too..can anyone tell me what is happening here?
Ummm, that alone isn't a solution.
yes thats the beginning,which I didnt get either
Okay, so what they are saying is that...
please tell in detail :( m VERY confused :/
Any number \(n\) divided by \(d\) can be written as:\[ n=qd+r \]Where \(q\) is the quotient and \(r\) is the remainder.
They're all natural numbers. and \(r<d\)
Well they're all integers at least.
In this case they are dividing by \(7\) so \(d=7\). They also used \(k\) for \(q\).
So what they are doing is listing off all possibilities of \[ 7k+r \]
\(r=0,r=1,...,r=6\)
okay
but that stopped at 7k+4??
\[ (7k+r)^2=7\times7k+2\times 7rk+r^2=7(7k+2rk)+r^2 \]
Now if we square the numbers for \(r \in [0,6]\in\mathbb{N}\)...\[ 0\to 0\\ 1\to 1\\ 2\to 4\\ 3\to 9=7+2\\ 4\to 16=2\times 7+2\\ 5\to 25=3\times 7+4\\ 6\to 36=5\times 7+1 \]
So the only remainders here are \(0,1,2,4\)
In other words: \[ (7k+r)^2=7k'+r' \]
Does that muck make sense to you?
what is that? 0->0 ..
\(0^2=0\)
\[ r^2\to 7n+r' \]
okay
What does the proof say next?
i only have this much :P its a hint
I honestly don't know where to go from there though.
Oh, I think I have an idea!
Okay so suppose \[ a=7k_1+r_1\\ b=7k_2+r_2 \]
:o
Since both \(5\) are between \(0\) and \(6\), they are like \(7\) sided die.
There are \(49\) possibilities and we can list them out...
\[ 0^2+0^2=0 \]
So that is \(1/49\) so far...
hmm..can we do the question to which I have full solution then? same type
then we can come back to this if our method is right
Hold on, we can actually do this relatively quickly.
okay
\(7-0=7\) so no \(0, x\) combo will work other than \(0,0\)
Remember that the squares will only have remainders \(0,1,2,4\)
i lost the track ........ lets do a simple one please :|
Ok.
same ques,a+b divisible by 4
Okay, so \(r\) = \(0,1,2,3\)
There are \(4\times 4=16\) possiblities.
u mean that is the answer?
No, that is total possibilities. We need to find target possibilities now.
there are 16 pos of what?
We have: \[ 1+3\\ 2+2\\ 3+1 \]
okay
Only those add up to \(4\)
But \[ 0+0 \]also is dibisible by \(4\)
So \(1/4\) is the probability. Does that work?
hmm yes
Is the original question solved ?
@wio answer to this question is PRETTY long
answer to the question, a+b|4 ?
answer is integral and a big one
\[\large (25C_1 \times 25C_1) + (25C_1 \times 25C_1)+25C_2\]
+25C2
(a, b ) are natural numbers <= 100 find total # of ways that a+b | 4 is that q we talking about at the moment ?
yes
Solution if anyone can explain/understand :| Numbers are of form.....4k,4k+1,4k+2,4k+3 a+b arae of form 4k------25C2 ways a of form 4k+1------ b of form 4k+3------ (25C1 x 25C1) ways a of form 4K+2----- b of form 4K+2------ (25C2 ways ) a of form 4k+3------- b of form 4k+1------- (25C1 x 25C1) ways Now add both..
Now add all*
easy, when dealing with division wid 4, lets represent all natiral numbers below 100 as multiple of 4 numbers = 4k, 4k+1, 4k+2, 4k+3 k = 0-24
We want a+b to be a multiple of 4, so, a+b = 4k
4 cases :- case 1 : when a and b both are multiples of 4, a = 4k, b = 4k since k can take values from 0 to 24, you can pick two values (a, b) in 25C2 ways
if above case is clear to you, other cases I dont have to explain u
I sort of was explaining that when I wrote: \[ 0+0\\ 1+3\\ 2+2\\ 3+1 \]
these are the four ways of divisible by \(4\) out of the \(4\times 4\) total ways.
exactly, those are the remainders we're interested - 4 cases
why is 0<k<24
cuz u want natural numbers less than 100 we represented all natural numbers using below :- 4k, 4k+1, 4k+2, 4k+3
wats the max value for k ?
u cant put k=25 there, cuz that wud give u 4*25+3 = 103
so always it will go to n-1? i mean if its for 7 then 7k+6?
Prodigious! You need to pay attention @DLS
\(7k+7=7(k+1)+0\)
7k+7 is same as 7k
hmm..
7k+7 is same as 7k in the world of multiples of 7 ofcourse; we're touching modular arithmetic now...
your a^2+b^2 |7 problem is much simpler than a+b|4 problem actually
How!?
since 7 is a prime, for it to divide (a^2+b^2), it must divide both a and b
once u see that, it boils down to the problem of finding all ways a+b|7
this is simple, cuz we have oly 1 case here
both a and b must be multiples of 7
Why?
Join our real-time social learning platform and learn together with your friends!