0%

Problem 774


Problem 774


Conjunctive Sequences

& denote the bitwise AND operation.

For example, 10 & 12=10102 & 11002=10002=8.

We shall call a finite sequence of non-negative integers (a1,a2,,an) conjunctive if ai & ai+10 for all i=1n1.

Define c(n,b) to be the number of conjunctive sequences of length n in which all terms are b.

You are given that c(3,4)=18, c(10,6)=2496120, and c(100,200)268159379(mod998244353).

Find c(123,123456789). Give your answer modulo 998244353.


合取数列

&表示按位与操作。

例如,10 & 12=10102 & 11002=10002=8

若有限非负整数列(a1,a2,,an)满足,对所有i=1n1均有ai & ai+10,则称之为合取数列。

c(n,b)为所有长度为n且各项均b的合取数列的数目。

已知c(3,4)=18c(10,6)=2496120,以及c(100,200)268159379(mod998244353)

c(123,123456789),并将你的答案对998244353取余。


Gitalking ...