Let be the number of words that can be formed using the letter A times, the letter B times and the letter C times with the condition that every A is separated from every B by at least two Cs. For example, CACACCBB is a valid word for but ACBCACBC is not.
You are given and .
Find . Give your answer modulo .
873. 带间隔的单词
记 为:由 个 A、 个 B、 个 C 组成,且任意 A、B 之间至少被 个 C 隔开的词的数量。例如,CACACCBB 是一个符合要求的词,而 ACBCACBC 不是。