Last visit was: 18 May 2024, 23:22 It is currently 18 May 2024, 23:22
Close
GMAT Club Daily Prep
Thank you for using the timer - this advanced tool can estimate your performance and suggest more practice questions. We have subscribed you to Daily Prep Questions via email.

Customized
for You

we will pick new questions that match your level based on your Timer History

Track
Your Progress

every week, we’ll send you an estimated GMAT score based on your performance

Practice
Pays

we will pick new questions that match your level based on your Timer History
Not interested in getting valuable practice questions and articles delivered to your email? No problem, unsubscribe here.
Close
Request Expert Reply
Confirm Cancel
SORT BY:
Date
Tags:
Show Tags
Hide Tags
Math Expert
Joined: 02 Sep 2009
Posts: 93334
Own Kudos [?]: 624851 [12]
Given Kudos: 81900
Send PM
Most Helpful Reply
Intern
Intern
Joined: 08 Feb 2020
Posts: 34
Own Kudos [?]: 32 [12]
Given Kudos: 146
GMAT 1: 780 Q50 V47
Send PM
General Discussion
Manager
Manager
Joined: 23 May 2020
Posts: 229
Own Kudos [?]: 231 [0]
Given Kudos: 46
Location: India
Send PM
McCombs School Moderator
Joined: 26 May 2019
Posts: 325
Own Kudos [?]: 354 [4]
Given Kudos: 151
Location: India
GMAT 1: 690 Q50 V33
Send PM
Re: If p and q are integers, what is the remainder when p^2 + q^2 is divid [#permalink]
3
Kudos
1
Bookmarks
If p and q are positive integers, what is the remainder when p^2 + q^2 is divided by 5?

(1) When p - q is divided by 5, the remainder is 1.
(2) When p + q is divided by 5, the remainder is 2.


st1) p^2 + q^2 = (p-q)^2 + 2pq, but since we don't know the remainder of pq, INSUFFICIENT

st2) p^2 + q^2 = (p+q)^2 - 2pq, but since we don't know the remainder of pq, INSUFFICIENT


st1 and st2 taken together, p^2 + q^2 = ((p+q)^2 + (p-q)^2)/2 = rem(2^2 + 1^2) = rem(5) = 0 SUFFICIENT

So, the answer should be C
SVP
SVP
Joined: 24 Nov 2016
Posts: 1718
Own Kudos [?]: 1348 [1]
Given Kudos: 607
Location: United States
Send PM
Re: If p and q are integers, what is the remainder when p^2 + q^2 is divid [#permalink]
1
Kudos
Quote:
If p and q are positive integers, what is the remainder when p^2 + q^2 is divided by 5?

(1) When p - q is divided by 5, the remainder is 1.
(2) When p + q is divided by 5, the remainder is 2.


(1) insufic

p-q/5=r1; p-q={1,6,11,16…}
(p,q)=(2,1), p^2+q^2=4+1=5/5=r0
(p,q)=(4,3), p^2+q^2=9+2=11/5=r1

(2) insufic

p+q/5=r2; p+q={2,7,12,17…}
(p,q)=(1,1), p^2+q^2=1+1=2/5=r2
(p,q)=(4,3), p^2+q^2=16+9=25/5=r0

(1/2) sufic

(p+q)^2=[5(5m+2)]^2=[25m+10]^2
p^2+q^2+2pq=625m^2+100+500m;

(p-q)^2=[5(5n+1)]^2=[25n+5]^2
p^2+q^2-2pq=625n^2+25+250n;

2(p^2+q^2)=625m^2-625n^2+75+500m-250n
p^2+q^2=25(25…-25…+3+20…-20…)/2
p^2+q^2=positive integer, thus:
25(25…-25…+3+20…-20…)/2=positive integer
p^2+q^2=25x=multiple of 5
p^2+q^2/5 has remainder 0

Ans (C)
Intern
Intern
Joined: 05 Jun 2020
Posts: 40
Own Kudos [?]: 29 [1]
Given Kudos: 4
Location: India
Send PM
Re: If p and q are integers, what is the remainder when p^2 + q^2 is divid [#permalink]
1
Kudos
From statement 1 => p - q = 5m + 1 which means that p - q can take values like 1,6,11,16 and so on. Now let us try different values of p,q to check if it holds true for \(\frac{p^2 + q^2}{5}\) gives remainder as 0.
p = 2, q = 1 then,
\(\frac{p^2 + q^2}{5}\) = \(\frac{2^2 + 1^2}{5}\)
\(\frac{4 + 1}{5}\) => \(\frac{5}{5}\) => remainder = 0
p = 5, q = 4 then,
\(\frac{p^2 + q^2}{5}\) = \(\frac{5^2 + 4^2}{5}\)
\(\frac{25 + 16}{5}\) => \(\frac{41}{5}\) => remainder = 1

Since we are getting different results in the 2 cases, Statement 1 is not sufficient.

From statement 2 => p + q = 5k + 2 which means that p + q can take values like 2,7,12,17 and so on. Now let us try different values of p,q to check if it holds true for \(\frac{p^2 + q^2}{5}\) gives remainder as 0.
p = 1, q = 1 then,
\(\frac{p^2 + q^2}{5}\) = \(\frac{1^2 + 1^2}{5}\)
\(\frac{1 + 1}{5}\) => \(\frac{2}{5}\) => remainder = 2
p = 4, q = 3 then,
\(\frac{p^2 + q^2}{5}\) = \(\frac{4^2 + 3^2}{5}\)
\(\frac{16 + 9}{5}\) => \(\frac{25}{5}\) => remainder = 0

Since we are getting different results in the 2 cases, Statement 2 is not sufficient.

Now combining both the statements 1 & 2 we get \(p - q = 5m + 1\) and \(p + q = 5k + 2\). we need to check if \(\frac{p^2 + q^2}{5}\) gives remainder as 0 so to get that we square both the results and add them.

\(p^2 + q^2 - 2pq = 25m^2 + 1 + 10m\) + \(p^2 + q^2 + 2pq = 25k^2 + 4 + 10k\)

\(2(p^2 + q^2) = 25m^2 + 25k^2 + 10m + 10k + 5\)

\(2(p^2 + q^2) = 5(5m^2 + 5k^2 + 2m + 2k + 1)\)

=> \(\frac{p^2 + q^2}{5}\) gives remainder as 0.

So option C.
Stern School Moderator
Joined: 26 May 2020
Status:Spirited
Posts: 633
Own Kudos [?]: 539 [1]
Given Kudos: 219
Concentration: General Management, Technology
WE:Analyst (Computer Software)
Send PM
Re: If p and q are integers, what is the remainder when p^2 + q^2 is divid [#permalink]
1
Kudos
Is it C ?
If p and q are positive integers, what is the remainder when p^2 + q^2 is divided by 5?

(1) When p - q is divided by 5, the remainder is 1.
the unit digit of P -q can be 1 or 6 ... P ,q can be 4 and 3 so ... p^2 +q^2 = 25 .. divisible by 5 -- rem 0 .. so p , q can be 10 and 4 ., p^2 +q^2 =116 .. rem -- 1 -- not sufficient

(2) When p + q is divided by 5, the remainder is 2.

the unit digit of P +q can be 2 or 7 ... P ,q can be 4 and 3 so ... p^2 +q^2 = 25 .. divisible by 5 -- rem 0 .. so p , q can be 12 or 10 ., p^2 +q^2 =244.. rem -- 4 -- not sufficient

Combining 1 and 2 .
the unit digit of P -q can be 1 and the unit digit of P +q is 7
so ... p^2 +q^2 = 25 .. divisible by 5 -- rem 0
[color=#00a651]sufficient
Senior Manager
Senior Manager
Joined: 14 Jul 2019
Status:Student
Posts: 476
Own Kudos [?]: 370 [1]
Given Kudos: 52
Location: United States
Concentration: Accounting, Finance
GMAT 1: 650 Q45 V35
GPA: 3.9
WE:Education (Accounting)
Send PM
Re: If p and q are integers, what is the remainder when p^2 + q^2 is divid [#permalink]
1
Kudos
If p and q are positive integers, what is the remainder when p^2 + q^2 is divided by 5?

(1) When p - q is divided by 5, the remainder is 1.
(2) When p + q is divided by 5, the remainder is 2.

1) When p = 3, q = 2, then p^2 + q^2 = 9 + 4 = 13 (when divided by 5, remainder is 3) . Again when, p = 2, q = 1, p^2 +q^2 = 5 (remainder is 0). Not sufficient.

2) p = q = 1, then p^2 + q^2 = 2 ( remainder is 2). When, p = 5, q = 2, p^2 + q^2 = 29 (remainder is 4). Not sufficient.

Together, p- q = 5k + 1.....(i)
and, p + q = 5k + 2.....(ii)
Now, p = 4, q =3 will meet both the equations, p^2 + q^2 = 25 (remainder is 0). Again, when p = 9, q =8, p^2 + q^2 = 81 + 64 = 145 (divisible by 5). So, we can infer that p and q will be consecutive integers and p > q. When p is even , we can write the sum as (2k)^2 +(2k -1)^2 = 4k^2 + 4k^2 - 4k + 1 = 8k^2 - 4k + 1. For k = 1, it will be 5. For k =2, it will be 32 - 8 + 1= 33 - 8 = 25, always divisible by 5.
When p is odd,p^2 + q^2 = (2k+1)^2 + (2k)^2 = 4k^2 + 4k + 1 + 4k^2 = 8k^2 + 4k +1. Now, as p + q is at least 2, and p - q is at least 1, so k can assume values as integers that is 1 less than multiples of 5 (e.g 4, 9, 14, 19 etc ). When, p = 19, the sum will be ....1 + ...4 = an integer ending with 5, so the remainder in all cases will be 0.

C is the answer.
Intern
Intern
Joined: 31 Dec 2018
Posts: 1
Own Kudos [?]: 0 [0]
Given Kudos: 1
Send PM
Re: If p and q are integers, what is the remainder when p^2 + q^2 is divid [#permalink]
ashh wrote:
Now combining both the statements 1 & 2 we get \(p - q = 5m + 1\) and \(p + q = 5k + 2\). we need to check if \(\frac{p^2 + q^2}{5}\) gives remainder as 0 so to get that we square both the results and add them.

\(p^2 + q^2 - 2pq = 25m^2 + 1 + 10m\) + \(p^2 + q^2 + 2pq = 25k^2 + 4 + 10k\)

\(2(p^2 + q^2) = 25m^2 + 25k^2 + 10m + 10k + 5\)

\(2(p^2 + q^2) = 5(5m^2 + 5k^2 + 2m + 2k + 1)\)

=> \(\frac{p^2 + q^2}{5}\) gives remainder as 0.

So option C.


Hi Ash,

Thanks for posting your solution to this problem.
I was following everything up until the last two lines.

It's pretty clear that \(2(p^2 + q^2)\) is divisible by 5, but how did you deduce that \((p^2 + q^2)\) is also divisible by 5?
Director
Director
Joined: 05 Jul 2020
Posts: 588
Own Kudos [?]: 303 [1]
Given Kudos: 154
GMAT 1: 720 Q49 V38
WE:Accounting (Accounting)
Send PM
Re: If p and q are integers, what is the remainder when p^2 + q^2 is divid [#permalink]
1
Kudos
MikeAlphaZulu wrote:
ashh wrote:
Now combining both the statements 1 & 2 we get \(p - q = 5m + 1\) and \(p + q = 5k + 2\). we need to check if \(\frac{p^2 + q^2}{5}\) gives remainder as 0 so to get that we square both the results and add them.

\(p^2 + q^2 - 2pq = 25m^2 + 1 + 10m\) + \(p^2 + q^2 + 2pq = 25k^2 + 4 + 10k\)

\(2(p^2 + q^2) = 25m^2 + 25k^2 + 10m + 10k + 5\)

\(2(p^2 + q^2) = 5(5m^2 + 5k^2 + 2m + 2k + 1)\)

=> \(\frac{p^2 + q^2}{5}\) gives remainder as 0.

So option C.


Hi Ash,

Thanks for posting your solution to this problem.
I was following everything up until the last two lines.

It's pretty clear that \(2(p^2 + q^2)\) is divisible by 5, but how did you deduce that \((p^2 + q^2)\) is also divisible by 5?


Hey if twice of a number is a divisible by 5, then that number is definitely divisible by 5 as multiplying by 2 does not affect the number's divisibility by 5.
User avatar
Non-Human User
Joined: 09 Sep 2013
Posts: 33078
Own Kudos [?]: 828 [0]
Given Kudos: 0
Send PM
Re: If p and q are integers, what is the remainder when p^2 + q^2 is divid [#permalink]
Hello from the GMAT Club BumpBot!

Thanks to another GMAT Club member, I have just discovered this valuable topic, yet it had no discussion for over a year. I am now bumping it up - doing my job. I think you may find it valuable (esp those replies with Kudos).

Want to see all other topics I dig out? Follow me (click follow button on profile). You will receive a summary of all topics I bump in your profile area as well as via email.
GMAT Club Bot
Re: If p and q are integers, what is the remainder when p^2 + q^2 is divid [#permalink]
Moderator:
Math Expert
93334 posts