トヨタ自動車プログラミングコンテスト2024#9(AtCoder Beginner Contest 370)
翻译中…
Problem Statement
翻译中…
We call a positive integer $n$ a good integer if and only if the sum of its positive divisors is divisible by $3$.
You are given two positive integers $N$ and $M$. Find the number, modulo $998244353$, of length-$M$ sequences $A$ of positive integers such that the product of the elements in $A$ is a good integer not exceeding $N$.
翻译中…
Constraints
翻译中…
$1 \leq N \leq 10^{10}$$1 \leq M \leq 10^5$$N$and$M$are integers.
翻译中…
Input
翻译中…
The input is given from Standard Input in the following format:
翻译中…
N M
翻译中…
Output
翻译中…
Print the answer.
翻译中…
样例
Input #1
10 1
Output #1
5
There are five sequences that satisfy the conditions:
- $(2)$
- $(5)$
- $(6)$
- $(8)$
- $(10)$
Input #2
4 2
Output #2
2
There are two sequences that satisfy the conditions:
- $(1, 2)$
- $(2, 1)$
Input #3
370 907
Output #3
221764640
Input #4
10000000000 100000
Output #4
447456146
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。