Vrijeme: 06:28
Bojanka | Coloring Book #4
Zadan je neusmjeren graf s
čvorova, označenih redom od
do
, pri čemu je
. Postoji brid između čvorova
i
te između
i
za sve prirodne brojeve
. Također, postoji brid između čvorova
i
te između
i
. Isto tako, bridovi povezuju
i
za sve prirodne brojeve
.
Na koliko načina možemo obojiti svaki čvor danog grafa u jednu od
različitih boja tako da ne postoji brid čiji su vrhovi iste boje? Odgovor napišite modulo
.
čvorova, označenih redom od
do
, pri čemu je
. Postoji brid između čvorova
i
te između
i
za sve prirodne brojeve
. Također, postoji brid između čvorova
i
te između
i
. Isto tako, bridovi povezuju
i
za sve prirodne brojeve
. Na koliko načina možemo obojiti svaki čvor danog grafa u jednu od
različitih boja tako da ne postoji brid čiji su vrhovi iste boje? Odgovor napišite modulo
. An undirected graph with
nodes is given, where
. The nodes are labeled with integers from
to
. There is an edge between nodes
and
, and also between
and
for every integer
. Additionally, there is an edge between nodes
and
, and also between
and
. Furthermore, there is an edge between
and
for every positive integer
.
In how many ways can we color each node in one of
different colors such that there is no edge whose nodes are the same color? Write the answer modulo
.
nodes is given, where
. The nodes are labeled with integers from
to
. There is an edge between nodes
and
, and also between
and
for every integer
. Additionally, there is an edge between nodes
and
, and also between
and
. Furthermore, there is an edge between
and
for every positive integer
. In how many ways can we color each node in one of
different colors such that there is no edge whose nodes are the same color? Write the answer modulo
.