Vrijeme: 11:06
Prebrojavanje u srcu <3 | Counting in our hearts <3 #3
Neka se
dečkiju i
cura poreda u red. Neka
bude broj puta kada dečko i cura stoje jedno do drugoga. Kolika je očekivana vrijednost od
kroz sve permutacije?
dečkiju i
cura poreda u red. Neka
bude broj puta kada dečko i cura stoje jedno do drugoga. Kolika je očekivana vrijednost od
kroz sve permutacije?Zapiši rješenje u obliku
gdje su
i
relativno prosti cijeli brojevi te kao odgovor na ovo pitanje upiši
.
Twenty boys and ten girls are arranged in a row. Let
be the number of times a boy and a girl stand next to each other (i.e., the number of adjacent pairs consisting of one boy and one girl). What is the expected value of
over all permutations?
be the number of times a boy and a girl stand next to each other (i.e., the number of adjacent pairs consisting of one boy and one girl). What is the expected value of
over all permutations?Write the solution in the form
, where
and
are coprime integers, and as the final answer to this question enter
.