The table contains tennis training schedule for Saturday's younger students during the winter indoor season. Before the start of the summer season is preparing a new training schedule. Tomas Kucera will be able to practice only in the morning, sisters Kovacova will have to train in any order only one after one. Other students meet all times.

How many different schedules tennis training under these conditions can be created for these eight students?

9:00 to 9:55 Jana Abrahámová
10:00 to 10:55 Tomas Kucera
11:00 to 11:55 Beata Gross
12:00 to 12:55 Dana Ihringová
13:00 to 13:55 Ingrid Hájková
14:00 to 14:55 Katarina Kovacova
15:00 to 15:55 Zuzana Kovacova
16:00 to 16:55 Peter Valent


x =  4080


Solution in text x =
Program in PHP:
for($a=1;$a<=8;$a++) {
    for($b=1;$b<=8;$b++) {
        for($c=1;$c<=8;$c++) {
            for($d=1;$d<=8;$d++) {
                for($e=1;$e<=8;$e++) {
                    for($f=1;$f<=8 ;$f++) {
                        for($g=1;$g<=8;$g++) {
                            for($h=1;$h<=8;$h++) {

if($a != 1 && $b != 1 && $c != 1)

if($a==2 && $b!=3 || $b==2 && $c!=3
    || $c==2 && $d!=3 || $d==2 && $e!=3 ||
    $e==2 && $f!=3 || $f==2 && $g!=3 ||
    $g==2 && $h!=3)

$aa = array($a, $b, $c, $d, $e, $f, $g, $h);
if(count($aa) != count(array_unique($aa)))

echo 'count of permutations: '.$cnt;

Leave us a comment of example and its solution (i.e. if it is still somewhat unclear...):

Showing 0 comments:
1st comment
Be the first to comment!

Would you like to compute count of combinations? See also our variations calculator. See also our permutations calculator.

Next similar examples:

  1. Logik game
    logik-game Letter game Logik is a two player game, which has the following rules: 1. The first player thinks five-letter word in which no letter is not repeated. 2. The second player writes a five-letter word. 3. The first player answers two numbers - the first numbe
  2. Soaps
    mydlo_1 Each box has the same number of soaps. A quarter of all boxes contain only white soaps, and in each of the remaining 120 boxes there are always half the white soaps and half the green. White soaps total 1200. (a) the number of all soap boxes; (b) the sma
  3. Desks
    desks A class has 20 students. The classroom consists of 20 desks, with 4 desks in each of 5 different rows. Amy, Bob, Chloe, and David are all friends, and would like to sit in the same row. How many possible seating arrangements are there such that Amy, Bob, C
  4. Competition
    sutaz 15 boys and 10 girls are in the class. On school competition of them is selected 6-member team composed of 4 boys and 2 girls. How many ways can we select students?
  5. Password
    codes The voltage station is every day changing the master password, which consists of three letters. Code generation process does not change and is based on the following procedure: The following letters (A) to (I) correspond to different numbers from 1 to 9. I
  6. Digits
    numbers2_18 How many natural numbers greater than 4000 which are formed from the numbers 0,1,3,7,9 with the figures not repeated, B) How many will the number of natural numbers less than 4000 and the numbers can be repeated?
  7. Dices throws
    dices_4 What is the probability that the two throws of the dice: a) Six falls even once b) Six will fall at least once
  8. Toys
    toys 3 children pulled 12 different toys from a box. Many ways can be divided toys so that each children had at least one toy?
  9. Eight blocks
    cuboids Dana had the task to save the eight blocks of these rules: 1. Between two red cubes must be a different color. 2. Between two blue must be two different colors. 3. Between two green must be three different colors. 4. Between two yellow blocks must be four
    math_1 How many words can be created from the word MATEMATIKA by changing the order of the letters, regardless of whether or not the words are meaningful?
  11. Combinations of sweaters
    sveter I have 4 sweaters two are white, 1 red and 1 green. How many ways can this done?
  12. Hockey match
    football_2 The hockey match ended with result 3:1. How many different storylines may have the match?
  13. Three-digit numbers
    poker_hand_ranking How many three-digit numbers are from the numbers 0 2 4 6 8 (with/without repetition)?
  14. Salami
    salama How many ways can we choose 5 pcs of salami, if we have 6 types of salami for 10 pieces and one type for 4 pieces?
  15. Phone numbers
    old_phone How many 7-digit telephone numbers can be compiled from the digits 0,1,2,..,8,9 that no digit is repeated?
  16. Average age
    candles_1 The company of five people has an average age of 46 years. The average age of the first four is 43 years. How many years has the fifth member of this company?
  17. A cylinder
    string A cylinder 108 cm high has a circumference of 24 cm. A string makes exactly 6 complete turns around the cylinder while its two ends touch the cylinder's top and bottom. (forming a spiral around the cylinder). How long is the string in cm?