Предмет: Информатика, автор: Alinka19971412

Перестановка чисел от 1 до N – это последовательность из чисел от 1 до N, записанных в произвольном порядке, такая, что каждое число встречается в ней
ровно один раз.
Сколько существует перестановок чисел от 1 до 7 таких, что на позициях 5 и 6 стоят четные числа?

Ответы

Автор ответа: flsh
0
Среди чисел от 1 до 7 три чётных числа: 2, 4, 6.
Количество вариантов размещения трёх чисел на двух местах: A_3^2=frac{3!}{(3-2)!} = 6.
Каждому набору из двух чётных чисел на 5-й и 6-й позициях соответствует 5! = 120 перестановок остальных пяти чисел на оставшихся 5 позициях.
Поэтому, всего искомых перестановок: 6*120 = 720.

Похожие вопросы
Предмет: Английский язык, автор: neobychnaya00
Предмет: Английский язык, автор: aleksa1alexina
Срочно, ребят, выручите с английским!!!
Найдите в параграфе все глаголы в форме страдательного залога.
Made laws are nevertheless often patterned upon informal rules of conduct already existing in society, and relations between people are regulated by a combination of all these rules. This relationship can be demonstrated using the example of a sports club. A member of a rugby club is so angry with the referee during a club game that he hits him and breaks his nose. At the most informal level of social custom, it is probable that people seeing or hearing about the incident would criticize the player and try to persuade him to apologize and perhaps compensate the referee in some way. At a more formal level, the player would find he had broken the rules of his club, and perhaps of a wider institution governing the conduct of all people playing rugby, and would face punishment, such as a fine or a suspension before he would be allowed to play another game. Finally, the player might also face prosecution for attacking the referee under laws created by the government of his country. In many countries there might be two kinds of prosecution. First, the referee could conduct a civil action against the player, demanding compensation for his injury and getting his claim enforced by a court of law if the player failed to agree privately. Second, the police might also start an action against the player for a crime of violence. If found guilty, the player might be sent to prison, or he might be made to pay a fine to the court-that is, punishment for an offence against the state, since governments often consider anti-social behavior not simply as a matter between two individuals but as a danger to the well-being and order of society as a whole.