Ask your own question, for FREE!
Mathematics 8 Online
OpenStudy (dls):

Help!

OpenStudy (dls):

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.

OpenStudy (dls):

@ganeshie8 @Psymon @shubhamsrg

OpenStudy (anonymous):

Okay, here is one trick you can try...

OpenStudy (anonymous):

Consider only the final digit of each number!

OpenStudy (dls):

wont work..

OpenStudy (anonymous):

\[ 1,1 \to 1+1=2\\ 1,2\to 1+4=5\\ ... \]

OpenStudy (anonymous):

Why not?

OpenStudy (anonymous):

There are \(^{10}C_2\) combos.

OpenStudy (dls):

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?

OpenStudy (anonymous):

Ummm, that alone isn't a solution.

OpenStudy (dls):

yes thats the beginning,which I didnt get either

OpenStudy (anonymous):

Okay, so what they are saying is that...

OpenStudy (dls):

please tell in detail :( m VERY confused :/

OpenStudy (anonymous):

Any number \(n\) divided by \(d\) can be written as:\[ n=qd+r \]Where \(q\) is the quotient and \(r\) is the remainder.

OpenStudy (anonymous):

They're all natural numbers. and \(r<d\)

OpenStudy (anonymous):

Well they're all integers at least.

OpenStudy (anonymous):

In this case they are dividing by \(7\) so \(d=7\). They also used \(k\) for \(q\).

OpenStudy (anonymous):

So what they are doing is listing off all possibilities of \[ 7k+r \]

OpenStudy (anonymous):

\(r=0,r=1,...,r=6\)

OpenStudy (dls):

okay

OpenStudy (dls):

but that stopped at 7k+4??

OpenStudy (anonymous):

\[ (7k+r)^2=7\times7k+2\times 7rk+r^2=7(7k+2rk)+r^2 \]

OpenStudy (anonymous):

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 \]

OpenStudy (anonymous):

So the only remainders here are \(0,1,2,4\)

OpenStudy (anonymous):

In other words: \[ (7k+r)^2=7k'+r' \]

OpenStudy (anonymous):

Does that muck make sense to you?

OpenStudy (dls):

what is that? 0->0 ..

OpenStudy (anonymous):

\(0^2=0\)

OpenStudy (anonymous):

\[ r^2\to 7n+r' \]

OpenStudy (dls):

okay

OpenStudy (anonymous):

What does the proof say next?

OpenStudy (dls):

i only have this much :P its a hint

OpenStudy (anonymous):

I honestly don't know where to go from there though.

OpenStudy (anonymous):

Oh, I think I have an idea!

OpenStudy (anonymous):

Okay so suppose \[ a=7k_1+r_1\\ b=7k_2+r_2 \]

OpenStudy (dls):

:o

OpenStudy (anonymous):

Since both \(5\) are between \(0\) and \(6\), they are like \(7\) sided die.

OpenStudy (anonymous):

There are \(49\) possibilities and we can list them out...

OpenStudy (anonymous):

\[ 0^2+0^2=0 \]

OpenStudy (anonymous):

So that is \(1/49\) so far...

OpenStudy (dls):

hmm..can we do the question to which I have full solution then? same type

OpenStudy (dls):

then we can come back to this if our method is right

OpenStudy (anonymous):

Hold on, we can actually do this relatively quickly.

OpenStudy (dls):

okay

OpenStudy (anonymous):

\(7-0=7\) so no \(0, x\) combo will work other than \(0,0\)

OpenStudy (anonymous):

Remember that the squares will only have remainders \(0,1,2,4\)

OpenStudy (dls):

i lost the track ........ lets do a simple one please :|

OpenStudy (anonymous):

Ok.

OpenStudy (dls):

same ques,a+b divisible by 4

OpenStudy (anonymous):

Okay, so \(r\) = \(0,1,2,3\)

OpenStudy (anonymous):

There are \(4\times 4=16\) possiblities.

OpenStudy (dls):

u mean that is the answer?

OpenStudy (anonymous):

No, that is total possibilities. We need to find target possibilities now.

OpenStudy (dls):

there are 16 pos of what?

OpenStudy (anonymous):

We have: \[ 1+3\\ 2+2\\ 3+1 \]

OpenStudy (dls):

okay

OpenStudy (anonymous):

Only those add up to \(4\)

OpenStudy (anonymous):

But \[ 0+0 \]also is dibisible by \(4\)

OpenStudy (anonymous):

So \(1/4\) is the probability. Does that work?

OpenStudy (dls):

hmm yes

OpenStudy (rsadhvika):

Is the original question solved ?

OpenStudy (dls):

@wio answer to this question is PRETTY long

OpenStudy (rsadhvika):

answer to the question, a+b|4 ?

OpenStudy (dls):

answer is integral and a big one

OpenStudy (dls):

\[\large (25C_1 \times 25C_1) + (25C_1 \times 25C_1)+25C_2\]

OpenStudy (dls):

+25C2

OpenStudy (rsadhvika):

(a, b ) are natural numbers <= 100 find total # of ways that a+b | 4 is that q we talking about at the moment ?

OpenStudy (dls):

yes

OpenStudy (dls):

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..

OpenStudy (dls):

Now add all*

OpenStudy (anonymous):

http://jsfiddle.net/2BJDc/1/

OpenStudy (anonymous):

http://jsfiddle.net/2BJDc/2/

OpenStudy (rsadhvika):

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

OpenStudy (rsadhvika):

We want a+b to be a multiple of 4, so, a+b = 4k

OpenStudy (anonymous):

http://jsfiddle.net/2BJDc/3/ This will let you do any function.

OpenStudy (rsadhvika):

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

OpenStudy (rsadhvika):

if above case is clear to you, other cases I dont have to explain u

OpenStudy (anonymous):

I sort of was explaining that when I wrote: \[ 0+0\\ 1+3\\ 2+2\\ 3+1 \]

OpenStudy (anonymous):

these are the four ways of divisible by \(4\) out of the \(4\times 4\) total ways.

OpenStudy (rsadhvika):

exactly, those are the remainders we're interested - 4 cases

OpenStudy (dls):

why is 0<k<24

OpenStudy (rsadhvika):

cuz u want natural numbers less than 100 we represented all natural numbers using below :- 4k, 4k+1, 4k+2, 4k+3

OpenStudy (rsadhvika):

wats the max value for k ?

OpenStudy (rsadhvika):

u cant put k=25 there, cuz that wud give u 4*25+3 = 103

OpenStudy (dls):

so always it will go to n-1? i mean if its for 7 then 7k+6?

OpenStudy (anonymous):

Prodigious! You need to pay attention @DLS

OpenStudy (anonymous):

\(7k+7=7(k+1)+0\)

OpenStudy (rsadhvika):

7k+7 is same as 7k

OpenStudy (dls):

hmm..

OpenStudy (rsadhvika):

7k+7 is same as 7k in the world of multiples of 7 ofcourse; we're touching modular arithmetic now...

OpenStudy (rsadhvika):

your a^2+b^2 |7 problem is much simpler than a+b|4 problem actually

OpenStudy (anonymous):

How!?

OpenStudy (rsadhvika):

since 7 is a prime, for it to divide (a^2+b^2), it must divide both a and b

OpenStudy (rsadhvika):

once u see that, it boils down to the problem of finding all ways a+b|7

OpenStudy (rsadhvika):

this is simple, cuz we have oly 1 case here

OpenStudy (rsadhvika):

both a and b must be multiples of 7

OpenStudy (anonymous):

Why?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!