Codey code !!!!!!

How many 4-digit codes can be formed by using the digits 1,2,3,4,5,6,7 without repetition?

900 844 836 840

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

9 solutions

Nit Jon
Dec 25, 2013

The problem says repetition does matter so that means you have to use the permutations formula...

n ! ( n r ) ! \frac{n!}{(n-r)!}

And to help you decide which of the numbers is n and r you can use the term " Out of n terms pick r terms".So in his problem the n n is 7( or the number of numbers) and the r r is 4 because you have to choose 4 numbers to make the 4-digit code. And from there you can solve the equation...

7 ! ( 7 4 ) ! \frac{7!}{(7-4)!} ................ 5040 6 \frac{5040}{6} ................. 5040 / 6 = 5040/6= 840 \boxed{840}

nice

Sowmy Vivek - 7 years, 4 months ago
Vederis Leunardus
May 31, 2014

hm... let we see it..

  • in the first digit we have 7 options 1,2,3,4,5,6,7
  • 7 _ _ _
  • because it cannot reused, we just have 6 options (if you choose 1 as the first digit you have 2,3,4,5,6,7)
  • 7 6 _ _
  • same like above you just have 5 options ( if you choose 2 as the second digit you have 3,4,5,6,7)
  • 7 6 5 _
  • 7 6 5 4.. so
  • 7 * 6 * 5 * 4 = 840
Joyce Yeo
Dec 25, 2013

There are 7 numbers to choose from in forming the four digit code.

For the first digit, you would have seven choices (any number from 1 to 7).

For the second digit, you would have 7 - 1 = 6 choices, since there is no repetition allowed. The number disclosed from this selection is the number chosen for the first digit, regardless of what the first digit was.

Similarly, you would have 7 - 2 = 5 choices for the third digit, excluding the first two distinct digits already chosen.

For the last digit, you would have 7 - 3 = 4 choices.

Take note that digit order would not matter (whether you choose the first or third digit of the code first) since each time you are already excluding the choice previously made.

As such, there would be 7 6 5*4 = 840 solutions possible.

The rationale for multiplying? Well, note that I have 7 choices for the first digit and 6 choices for the second.

For any of the 7 digits I picked for the first digit, I would still have 6 choices for the second digit. E.g. If I picked 4 for the first digit, I could choose 1,2,3,5,6,7 for the second digit. If the picked 7, I could choose 1,2,3,4,5,6 for the second digit.

I have seven possible ways to end up with 6 choices, thus the need for multiplication.

Doing the same for the third and fourth digits, the solution arrived at is 840 possible codes.

7! / 3!

life can be better

Soham Zemse - 7 years, 5 months ago

The main aim of this problem was to improve permutation and combination skills

Rohit Nair - 7 years, 5 months ago

can you solve it into short solving method ???

Amar Parizal - 7 years, 2 months ago

We can just use permutation to make things easier :)

Justine Kylie Zaguirre - 7 years, 5 months ago
Lulu Cajica
May 20, 2016

There are seven digits, but I only need four. So, I divided the factorial of the seven digits by the factorial of the seven digits minus the four gaps. It is as simple as: 7! / (7-4)! = 7! / 3! = 5040 / 6 = 840

Vaishnavi Vaish
Oct 5, 2014

n!/(n-r)! is the formula & n=7,r=4 ie., 7!/(7-4)!=5040/6=840

Pavan Pachigolla
Mar 12, 2014

let we take permutations is easy 7p4 =840

Rohan Sharma
Dec 27, 2013

to select a no. at unit place there are 7 ways and to fill next digit there are 6 ways similarly for next there are 5 ways and for last place there are 4 ways so total ways 7 6 5 4 = 840

Prasun Biswas
Dec 25, 2013

There are 7 digits that can be used to form the 4-digit codes. To find the no. of such codes that can be formed, we need to find permutations of the 7 digits taken 4 at a time.

So, total no. of ways = 7 P 4 = 7 × 6 × 5 × 4 = 42 × 20 = 840 =7P4 = 7\times 6\times 5\times 4 = 42\times 20 = \boxed{840}

Budi Utomo
Dec 25, 2013

7 x 6 x 5 x 4 = 20 * 42 = 840. "n.(n-1).(n-2).(n-3)" or using Parmutation ---> 7P4 = 7!/(7-4)! = 7.6.5.4.3!/3! = 7.6.5.4 = 840. Answer : 840

why making it so complicated, we have to make 4-digits number without repetition, with 1,2,3,4,5,6,7, we ill use first 1,2,3,4 we can make 24 numbers with these so the sum of final numbers using 1,2,3,4,5,6,7 will be multiple of 24, and from those only 840 is the one we search for

and sorry for that english!!

Wael Latrach - 7 years, 5 months ago

Log in to reply

what if they make 2 choices that divisible by 24 and the numbers are too great to be choosen randomly (i.e. nearly infinite)

Daniel Progrestian - 7 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...