問題一覧 > 通常問題

No.3505 Sum of Prod of Root

レベル : / AI推定難易度 : 1925 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 1024 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 58
作問者 : Solalyth / テスター : Naru820 Nzt3
お気に入りにしたユーザー ProblemId : 13164 / 自分の提出
問題文最終更新日: 2026-04-17 21:03:55
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
CPCTF 2026: PPC (順位表) の他の問題:

Problem Statement

You are given a positive integer $N$. Output the remainder when the integer $\displaystyle \sum_{i=1}^N \prod_{k=1}^{\infty} \lfloor \sqrt[k]{i} \rfloor$ is divided by $998244353$.

Constraints

  • $1 \leq N \leq 10^{18}$
  • All inputs are integers.

Input

The input is given from standard input in the following format.

$N$

Output

Output on a single line the remainder when the desired integer is divided by $998244353$.

Sample

Sample 1
Input
6
Output
36

We have $\displaystyle \sum_{i=1}^6 \prod_{k=1}^{\infty} \lfloor \sqrt[k]{i} \rfloor = 1 + 2 + 3 + 8 + 10 + 12 = 36$.

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