# Trainings

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


Correct result:

x =  4080

#### Solution:

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) { continue; } 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) { continue; }$aa = array($a,$b, $c,$d, $e,$f, $g,$h);
if(count($aa) != count(array_unique($aa)))
{
continue;
}
$cnt++; }}}}}}}} echo 'count of permutations: '.$cnt; We would be pleased if you find an error in the word problem, spelling mistakes, or inaccuracies and send it to us. Thank you! Tips to related online calculators
Would you like to compute count of combinations?

## Next similar math problems:

• Pupils Four pupils is going via dark hall. Start at one side and have to get to the other side for 17 minutes. They have only one lamp for the trip. The corridor is narrow, they can therefore go up two pupils at a time and go at the slower speed. Each pupil went
• Lunch Seven classmates go every day for lunch. If they always come to the front in a different order, will be enough school year to take of all the possibilities?
• Eight blocks 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
• Word MATEMATIKA 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?
• Pairs At the table sit 10 people, 5 on one side and 5 on the other side. Among them are 3 pairs. Every pair wants to sit opposite each other. How many ways can they sit?
• 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?
• Wagons We have six wagons, two white, two blue, and two red. We assemble trains from them, wagons of the same color are exactly the same, so if we change only two white wagons on a train, it's still the same train, because I don't know any different. How many di
• Phone numbers How many 7-digit telephone numbers can be compiled from the digits 0,1,2,..,8,9 that no digit is repeated?
• School committee 7 students was elected to the school committee. In how many ways can the President, Vice-President, Secretary and Treasurer be selected?
• The test The test contains four questions, and there are five different answers to each of them, of which only one is correct, the others are incorrect. What is the probability that a student who does not know the answer to any question will guess the right answer
• Numbers How many different 3 digit natural numbers in which no digit is repeated, can be composed from digits 0,1,2?
• Big numbers How many natural numbers less than 10 to the sixth can be written in numbers: a) 9.8.7 b) 9.8.0 There are 15 boys and 12 girls at the graduation party. Determine how many four couples can be selected. 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, For particular research in high school, four pupils are to be selected from a class with 30 pupils. Calculate the number of all possible results of the select and further calculate the number of all possible results, if it depends on the order in which th In a class are 24 seats but in 7.B class are only 18 students. How many ways can student seat? (The class has 12 benches. A bench is for a pair of students.) Result (large number) logarithm and thus write down as powers of 10. How many ways can 6 people sit on 6 numbered chairs (e. G. , seat reservation on the train)?