Vrijeme: 11:06
Nešto je konstantno u državi Medvedgrad | Something is constant in the country of Medvedgrad #4
Jednom drugom prilikom, na matematičkom kampu, održavao se turnir u stolnom tenisu. Posebno neosrednji igrač bio je Artur koji je na kraju krajeva pobijedio na čitavom turniru. Kao proslavu, Artur je odlučio počastiti sebe i prijatelje Igorovim sokom. Artur je imao
boca Igorovog soka. Jedna boca bila je visine
dm, druga
dm, treći
dm,
, šesnaesti
dm. Artur se zatim, u svojoj čarobnoj briljantnosti, zapitao:
boca Igorovog soka. Jedna boca bila je visine
dm, druga
dm, treći
dm,
, šesnaesti
dm. Artur se zatim, u svojoj čarobnoj briljantnosti, zapitao:Na koliko se načina mogu poredati boce Igorovog soka slijeva nadesno tako da bude najviše dva uzastopna pada u visini boca u čitavom nizu?
How many permutations
of the set
are there in which there are at most two consecutive descending elements? (An element
is called descending if
.)
of the set
are there in which there are at most two consecutive descending elements? (An element
is called descending if
.)Example. For
elements, the permutation
is not allowed because it contains
consecutive descents, while
is allowed because it has at most two consecutive descents.