Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Suppose I locked my ''very expensive'' mobile by a security code and now I forget the code. ;-( The things I remember about the code are:

1) It consists a sequence of FOUR numbers, each from 1 to 60.

2) All the numbers of the sequence are different.

3) The 2nd number is twice the 3rd one.

4) The 3rd one is prime.

How many different codes are possible having the above information?

My attempt: Since there are 10 primes between 1 to 60 twice of which is still inside 1 to 60, Hence 2nd and 3rd place can be filled with these 10 numbers, Now for the first place we have to choose from 58 numbers and for the fourth place we can choose from 57 numbers, Hence total possible codes are 10.57.58? Am i right?

share|cite|improve this question

Yes, you are right, and your reasoning is sound.

share|cite|improve this answer're correct on this! +1 – amWhy Apr 21 '13 at 3:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.