Vrijeme: 22:29
Bojanka | Coloring Book #5
Zadan je neusmjeren graf s
čvorova, označenih redom od
do
, pri čemu je
. Svi bridovi iz prethodnog zadatka u lancu također su prisutni i u ovom grafu. Dodatno, postoje i bridovi između
i
za sve prirodne brojeve
.
Na koliko načina možemo svakom bridu odrediti usmjerenje tako da ne postoji usmjereni ciklus? Odgovor napišite modulo
.







Na koliko načina možemo svakom bridu odrediti usmjerenje tako da ne postoji usmjereni ciklus? Odgovor napišite modulo

An undirected graph with
nodes is given, where
. The nodes are labeled with integers from
to
. All of the edges from the previous problem are also present in the graph given here. Additionally, there is an edge between the nodes
and
for every integer
.
In how many ways can we assign a direction for each edge in such a way that there is no directed cycle in the graph? Write the answer modulo
.







In how many ways can we assign a direction for each edge in such a way that there is no directed cycle in the graph? Write the answer modulo
