妻子出轨婚姻到了尽头:一道英文加数学题,请填空.

来源:百度文库 编辑:高校问答 时间:2024/05/13 07:51:05
There is a line of five lattices. Please use three colour-red,green and black to dye them.Each lattice uses one colour.there are _____ways to dye them without two adjoint lattices both being green .大家一定一定要帮忙!!!!!!!!!!!!!!!!!!!!!!!!!

只有一个绿色 有5段,5种
剩下4段每段是红或黑,2的4次方
总数有5*2^4

一行有五格,用红、绿、黑三种颜色染,每格一色。如果要求任何相邻两个都不被同时染成绿色,问有几种方法?

若只有一个绿色,则有80种
若有两个绿色,则有40种
若三个绿色,则有4种
所以,共有124种方法