問題一覧 > 通常問題

No.1180 Infinite Sum

レベル : / AI推定難易度 : 1025 / 実行時間制限 : 1ケース 1.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 39
作問者 : kozy / テスター : 👑 qand
お気に入りにしたユーザー ProblemId : 4843 / 自分の提出
問題文最終更新日: 2020-08-22 00:05:08
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
yukicoder contest 262 (順位表) の他の問題:

Problem Statement


You are given a positive integer $n$.
Find $\displaystyle \sum_{a_1=1}^\infty \sum_{a_2=1}^\infty ..... \sum_{a_n=1}^\infty \frac{1}{{a_1}^2 B}$.
Here,
$A$=$\displaystyle \prod_{k=1}^n {a_k}^2 $
$B$=$\displaystyle \sum_{k=1}^n \frac{A}{{a_k}^2}$
are defined as above.
Also, truncate the fractional part of the answer when printing it.

Input

$n$


$1 \le n \le 50$
At $23:07$, a rejudge was performed because the test cases contained a case outside the above constraints.

Output

Print a newline at the end.

Sample

Sample 1
Input
1
Output
1


This is $\displaystyle \sum_{a_1=1}^\infty \frac{1}{{a_1}^2}$, so it is the famous Basel problem.

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