問題一覧 > 通常問題

No.1357 Nada junior high school entrance examination 3rd day

レベル : / AI推定難易度 : 2700 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 7
作問者 : PCTprobability / テスター : KoD maguro
お気に入りにしたユーザー ProblemId : 5753 / 自分の提出
問題文最終更新日: 2021-04-25 22:51:03
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
灘中入試コンテストday2 (順位表) の他の問題:

Problem Statement

The Nada Junior High School entrance examination normally lasts 2 days, but apparently there was a hidden third day in 2021. Please solve its problem.

For positive integers $N,M$, the function $f(N,M)$ is defined as follows. Prepare a coin that lands heads with probability $Z$, and play the following game $N$ times in succession. Initially, $Y=1$ and $Z = 1$. In the $i \,\, (1 \leq i \leq N)$-th game, perform the following operations.

  • Toss the coin $1$ time, and if it lands heads, gain $Y×(-1)^{i+1}$ points.
  • Replace $Z$ with $ \frac{i^{M-1}}{(i+1)^M}×Z$.
  • Replace $Y$ with $(N-i)×Y$.
Let $f(N,M)$ be the expected value of the total points finally obtained. Given a positive integer $K$, find \( \displaystyle \sum_{a=1}^{K} \displaystyle \sum_{b=1}^{∞} \frac{f(b,2a-1)}{b} \). Here, it can be proved that this value can be uniquely expressed as \( \displaystyle \sum_{i=0}^{2K}c_iπ^i \) using a sequence of rational numbers $c_0,c_1,...,c_{2K}$. Output this sequence of rational numbers $c_0,c_1,...,c_{2K}$ modulo $ \bmod 998244353$, separated by spaces.

Here, outputting a rational number in $ \bmod 998244353$ means the following: it is guaranteed that the number can be expressed as $c_i=\frac{P}{Q}$ (an irreducible fraction) using coprime integers, an integer $P$ and a positive integer $Q$ not divisible by $998244353$, so output the unique positive integer $R$ that is at least $0$ and less than $998244353$ such that $P \equiv Q×R \bmod 998244353$.

Input

$K$

  • All inputs are positive integers.
  • $1 \le K \le 5×10^4$

Output

Find \( \displaystyle \sum_{a=1}^{K} \displaystyle \sum_{b=1}^{∞} \frac{f(b,2a-1)}{b} \). Here, it can be proved that this value can be uniquely expressed as \( \displaystyle \sum_{i=0}^{2K}c_iπ^i \) using a sequence of rational numbers $c_0,c_1,...,c_{2K}$. Output this sequence of rational numbers $c_0,c_1,...,c_{2K}$ modulo $ \bmod 998244353$, separated by spaces.

Sample

Sample 1
Input
1
Output
0 0 166374059

\( \displaystyle \sum_{a=1}^{1} \displaystyle \sum_{b=1}^{∞} \frac{f(b,2a-1)}{b} \)$= \frac{π^2}{6}$.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。