Last visit was: 25 Apr 2026, 17:22 It is currently 25 Apr 2026, 17: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
User avatar
EgmatQuantExpert
User avatar
e-GMAT Representative
Joined: 04 Jan 2015
Last visit: 02 Apr 2024
Posts: 3,657
Own Kudos:
20,884
 [5]
Given Kudos: 165
Expert
Expert reply
Posts: 3,657
Kudos: 20,884
 [5]
Kudos
Add Kudos
5
Bookmarks
Bookmark this Post
User avatar
gracie
Joined: 07 Dec 2014
Last visit: 11 Oct 2020
Posts: 1,028
Own Kudos:
2,023
 [1]
Given Kudos: 27
Posts: 1,028
Kudos: 2,023
 [1]
Kudos
Add Kudos
Bookmarks
Bookmark this Post
User avatar
Archit3110
User avatar
Major Poster
Joined: 18 Aug 2017
Last visit: 25 Apr 2026
Posts: 8,630
Own Kudos:
Given Kudos: 243
Status:You learn more from failure than from success.
Location: India
Concentration: Sustainability, Marketing
GMAT Focus 1: 545 Q79 V79 DI73
GMAT Focus 2: 645 Q83 V82 DI81
GPA: 4
WE:Marketing (Energy)
Products:
GMAT Focus 2: 645 Q83 V82 DI81
Posts: 8,630
Kudos: 5,190
Kudos
Add Kudos
Bookmarks
Bookmark this Post
User avatar
EgmatQuantExpert
User avatar
e-GMAT Representative
Joined: 04 Jan 2015
Last visit: 02 Apr 2024
Posts: 3,657
Own Kudos:
20,884
 [3]
Given Kudos: 165
Expert
Expert reply
Posts: 3,657
Kudos: 20,884
 [3]
3
Kudos
Add Kudos
Bookmarks
Bookmark this Post

Solution


Given:
We are given that
    • “n” is an odd prime number

To find:
We need to find,
    • The remainder when \(n^2 + 7\) is divided by 8

Approach and Working:
    • If we observe, all the positive integers can be written in the form 4k or + 4k + 1 or 4k + 2 or 4k + 3, where k is a non-negative integer.
      o Out of these, 4k and 4k + 2 cannot be prime numbers, since they are divisible by 2, for any value of k.

    • Thus, all odd prime numbers must be of the form 4k + 1 or 4k + 3

So, \(n^2\) will be \((4k + 1)^2\) or \((4k + 3)^2\)
    • And, \(n^2 + 7\) = \((16k^2 + 8k + 8)\) or \((16k^2 + 24k + 16)\) = \(8(2k^2 + k + 1)\) or \(8(2k^2 + 3k + 2)\)
    • Thus, both these expressions are divisible by 8, for any value of k

Therefore, the remainder is 0

Hence the correct answer is Option A.

Answer: A

User avatar
philipssonicare
Joined: 15 Feb 2018
Last visit: 22 Nov 2022
Posts: 410
Own Kudos:
434
 [1]
Given Kudos: 2,380
Posts: 410
Kudos: 434
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
The question is simple with substitution. The solution above seems to choose 4 arbitrarily.
Why not all positive integers can be expressed 2k, 2k+1 resulting in 4(k^2+k+2)?
avatar
pankajpatwari
Joined: 17 Aug 2018
Last visit: 01 Oct 2019
Posts: 17
Own Kudos:
Given Kudos: 22
Posts: 17
Kudos: 1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
philipssonicare
The question is simple with substitution. The solution above seems to choose 4 arbitrarily.
Why not all positive integers can be expressed 2k, 2k+1 resulting in 4(k^2+k+2)?

I concur.. Infact when we take 4k+1 we miss out on 3 which is a possible scenario which is not the case while taking 2k+1..
avatar
pankajpatwari
Joined: 17 Aug 2018
Last visit: 01 Oct 2019
Posts: 17
Own Kudos:
Given Kudos: 22
Posts: 17
Kudos: 1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
EgmatQuantExpert

Solution


Given:
We are given that
    • “n” is an odd prime number

To find:
We need to find,
    • The remainder when \(n^2 + 7\) is divided by 8

Approach and Working:
    • If we observe, all the positive integers can be written in the form 4k or + 4k + 1 or 4k + 2 or 4k + 3, where k is a non-negative integer.
      o Out of these, 4k and 4k + 2 cannot be prime numbers, since they are divisible by 2, for any value of k.

    • Thus, all odd prime numbers must be of the form 4k + 1 or 4k + 3

So, \(n^2\) will be \((4k + 1)^2\) or \((4k + 3)^2\)
    • And, \(n^2 + 7\) = \((16k^2 + 8k + 8)\) or \((16k^2 + 24k + 16)\) = \(8(2k^2 + k + 1)\) or \(8(2k^2 + 3k + 2)\)
    • Thus, both these expressions are divisible by 8, for any value of k

Therefore, the remainder is 0

Hence the correct answer is Option A.

Answer: A


When we take 4k+1 aren't we missing out on 3 which is a possible scenario??
User avatar
EgmatQuantExpert
User avatar
e-GMAT Representative
Joined: 04 Jan 2015
Last visit: 02 Apr 2024
Posts: 3,657
Own Kudos:
20,884
 [1]
Given Kudos: 165
Expert
Expert reply
Posts: 3,657
Kudos: 20,884
 [1]
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
Quote:

The question is simple with substitution. The solution above seems to choose 4 arbitrarily.
Why not all positive integers can be expressed 2k, 2k+1 resulting in 4(k^2+k+2)?
We are free to take 2k and 2k + 1 form also. As you mentioned, \((2k + 1)^2 + 7\) will be equal to \(4k^2 + 4k + 8 = 4(k^2 + k) + 8\)
Now, for any value of k, \(k^2 + k\) will be either 0 or an even number, hence \(4(k^2 + k)\) will be always divisible by 8.

Quote:


• Thus, all odd prime numbers must be of the form 4k + 1 or 4k + 3

So, \(n^2\) will be \((4k + 1)^2\) or \((4k + 3)^2\)
    • And, \(n^2 + 7\) = \((16k^2 + 8k + 8)\) or \((16k^2 + 24k + 16)\) = \(8(2k^2 + k + 1)\) or \(8(2k^2 + 3k + 2)\)
    • Thus, both these expressions are divisible by 8, for any value of k

Therefore, the remainder is 0
Quote:
When we take 4k+1 aren't we missing out on 3 which is a possible scenario??

If you look at the solution carefully, you will be able to see that we've considered both cases here: the possibility of 4k + 1 as well as the possibility of 4k + 3. The possible scenario of 3 is covered in the case of 4k + 3.

Hope this helps. :)
avatar
Sateni7628
Joined: 18 Jan 2018
Last visit: 23 Aug 2020
Posts: 44
Own Kudos:
Given Kudos: 34
Posts: 44
Kudos: 36
Kudos
Add Kudos
Bookmarks
Bookmark this Post
n is not equal to 2 because n is an odd prime number, n^2 +7 always gives an even number.

Now using n=3,5,7... always results (n^2 +7) = multiples of 8. Hence the remainder of (n^2 +7)/8 is always 0.
avatar
ManifestDreamMBA
Joined: 17 Sep 2024
Last visit: 21 Feb 2026
Posts: 1,387
Own Kudos:
Given Kudos: 243
Posts: 1,387
Kudos: 897
Kudos
Add Kudos
Bookmarks
Bookmark this Post
For n=3, remainder is 0
All prime numbers above 3, can be expressed as 6k+1.
(6k+1)^2 + 7 = 36k^2 +12k +1 +7
12k(3k+1) + 8
We need to know the remainder of division of 12k(3k+1) by 8 now
if k is even, say 2p, we have 24p(6p+1). since 24 is divisible by 8, we have 0 remainder
if k is odd, say 2p+1, we have 12k(6p+3+1) = 24k(3p+2). since 24 is divisible by 8, we have 0 remainder (PS: I have intentionally not substituted one of the k, to keep it simple)

So, answer in all scenarios is 0
EgmatQuantExpert
What is the remainder when \(n^2 + 7\) is divided by 8, where n is an odd prime number?


A. 0
B. 2
C. 3
D. 4
E. 6

To read all our articles:Must read articles to reach Q51

Moderators:
Math Expert
109830 posts
Tuck School Moderator
852 posts