Jump To Content

LearnHub




CAT Preparation: Prime Numbers

Ask The Experts



One of those very important topics for every entrance exam and at the same time a bit nebulous topic too

Theorem 1: Prime numbers are odd, except for 2, and they have exactly two factors, the number and 1 itself.

You would be wondering, why I have started with this, but whole prime number theory is based on this only.

From here, I will formulate something, which I use excessively in problem solving !. But first lets solve an example. This question is taken from My quant problem set III, the link of which can be found," free material for cat".

Example 1: Let a,b,c,d be distinct prime numbers satisfying :

2a+3b+5c+7d=162
11a+7b+5c+4d=162

Given that abcd=k. Find the number of distinct values of k?
A) 0
B) 1
C) 2
D) 3
E) 4


How we go about this? We were told in school, that n variables need n equations, but we have n-2 here. A road-block? No, a call to think deeply. Just see how we can reduce variables or increase equations.

We subtract the two equations and get 9a+4b=3d => 4b=3(d-3a)

RHS is divisible by 3, so should be LHS and therefore b=3

put this in the initial equations, and we are sure the max value of a can be =7 (i leave it to u to figure out how, a hint: all prime numbers are distinct, and we have used 3, we are left with the two smallest as 2 and 5).

Back again 3a=d-4=>d=3a+4 gives us (a,d)=(5,19),(11,37).. but clealry the second set wont work, very large values. We found the set, just by using the constraint, all are distinct primes and 3 has been used.

so we have b=3,a=5 d=19, there is no further need to go as we need the no of values of k which will obviously be 1. But for the sake of completeness we can check c=2

Seems like a marathon, but no its a 3-4 minute problem, once you start doing what I want you to !

Now, if you have understood this concept, you should be able to get the practice problem, which is taken from one of the simcats.

Practice Problem 1 A boy spends Rs. 81 in buying some pens and pencils. If a pen costs Rs.7 and a pencil Rs 3, What is the ratio of pens to pencils when the maximum number of pens are purchased such that no extra money is given to the shopkeeper?

A) 3:2
B) 2:1
C) 5:4
D) 7:2
E) none of these

The next concept which I am going to take up is Prime squares:)

Theorem 2 : All prime squares ( p>3) are of the form 6k+1, i.e , p^2=6k+1, for all primes p>3.

Lets try to prove this, any three numbers (p-1)p(p+1) will be divisible by 6. but as p is a prime greater than 3, it would neither be divisible by 2 nor 3, hence p^2-1=6k so p^2=6k+1.

Some purists will say, that as p is a prime greater than 3, then, p^2-1=24k+1, yupp I agree, but 24k+1 becomes cumbersome to handle sometimes. The proof is simple again, p is odd so both will be divisible by 2 and one by 4. also one of them by 3. hence p^2-1=24k so p^2=24k+1

But, I have always used 6k+1, may be just used to it. You may pick the one that suites you.

Kindly note, this is a necessary condition not a sufficient one, means all prime square will be of form 6k+1, but all no of 6k+1 cant be prime square

Lets handle our next example based on this.

Example 2 : Find the number of primes p, such that p^2+3p-1 is also a prime?

A quick check will tell 2 does not satisfy and 3 does.

now we check for higher primes

p^2+3p-1=6k+1+3p-1=3(2k+p) hence divisible by 3, not a prime

So, only one prime p=3 . We are done here!

Ask The Experts


  1. bhargavi196 saidSun, 30 Nov 2008 11:12:28 -0000 ( Link )

    The lesson is very informative and it is very much helpful

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  2. Lord Freek saidSun, 07 Dec 2008 11:09:08 -0000 ( Link )

    superb

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  3. asureshwaran saidSun, 04 Jan 2009 04:09:33 -0000 ( Link )

    superb!

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  4. masakali saidMon, 12 Jan 2009 08:27:57 -0000 ( Link )

    great

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  5. soumyadeep saidSun, 18 Jan 2009 16:59:40 -0000 ( Link )

    outstanding…...........................

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  6. santosh gupta saidTue, 20 Jan 2009 08:25:38 -0000 ( Link )

    need something new about prime numbers

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  7. ankit khandelwal saidFri, 23 Jan 2009 10:22:31 -0000 ( Link )

    good and outsanding

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

  8. nehassweet1 saidSun, 07 Jun 2009 11:14:54 -0000 ( Link )

    the lesson was really great but examlpe 1 on finding no of values of k was not very clear. Can u please give a detailed explanation

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  9. nehassweet1 saidThu, 11 Jun 2009 07:58:20 -0000 ( Link )

    i got example 1 till finding value of ‘b’ but after that how did u find max value of ‘a’ to be 7

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  10. nehassweet1 saidThu, 11 Jun 2009 07:59:03 -0000 ( Link )

    please add some more such gud examples

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  11. chandra_avinash saidSun, 21 Jun 2009 21:31:49 -0000 ( Link )

    hi neha,

    since a is prime, the choices are pretty narrow; further, if you substitute different values for a – you will find that 7 is most suitable;

    hope this helps

    Actions
    Vote
    Current Rating
    0
    Rate Up
    Rate Down
    No Votes

    Post Comments

  12. assasin saidSat, 11 Jul 2009 14:36:24 -0000 ( Link )

    dats great

    Actions
    Vote
    Current Rating
    1
    Rate Up
    Rate Down
    1 Total Vote

    Post Comments

Your Comment
Textile is Enabled (View Reference)