# Training

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 or inaccuracies and send it to us. Thank you!

Tips to related online calculators
Would you like to compute count of combinations?

## Related math problems and questions:

• Speed of Slovakian trains
Rudolf decided to take the train from the station 'Ostratice' to 'Horné Ozorovce'. In the train timetables found train Os 5409 : km 0 Chynorany 15:17 5 Ostratice 15:23 15:23 8 Rybany 15:27 15:27 10 Dolné Naštice 15:31 15:31 14 Bánovce nad Bebravou 15:35 1
• After 16 years
After 16 years will Dana be five times older as she was four years ago. After how many years will Dana celebrate her 16th birthday?
• Tennis racket
Tennis racket became cheaper by 16% in winter. In the spring, the price increased by 15%. After this increase, it cost € 38. How much did the rocket cost in the winter before cheapening?
• Lines
Five bus lines runs at intervals 3, 6, 9, 12, 15 minutes. In the morning, suddenly start at 4:00. After how many minutes the bus lines meet again?
• 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
• Bits, bytes
Calculate how many different numbers can be encoded in 16-bit binary word?
• Phone numbers
How many 7-digit telephone numbers can be compiled from the digits 0,1,2,..,8,9 that no digit is repeated?
• 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
• 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?