Alexander has recently achieved ridiculously high rating on Chessforces competition website. Alexander's coach challenged him with a difficult problem so that Alexander could truly prove his mettle.
Consider an n×n chessboard. A bishop is a chess piece that attacks all positions sharing a diagonal with it. A non-attacking configuration is an arrangement of several bishops on the chessboard such that no two bishops occupy the same position, and no bishop attacks any other.
Alexander has to count the number of non-attacking bishop configurations with exactly k bishops for each k from 1 to 2n−1. Since the answers can be large, each number has to be computed modulo a completely random number 998,244,353.