Counting Tuples

Problem Statement

Let $\pi(x)$ be the prime counting function, i.e. the number of prime numbers less than or equal to $x$.
For example,$\pi(1)=0$, $\pi(2)=1$, $\pi(100)=25$.

Let $T(n, k)$ be the number of $k$-tuples $(x_1, \dots, x_k)$ which satisfy:
1. every $x_i$ is a positive integer;
2. $\displaystyle \sum_{i=1}^k \pi(x_i)=n$

For example $T(3,3)=19$.
The $19$ tuples are $(1,1,5)$, $(1,5,1)$, $(5,1,1)$, $(1,1,6)$, $(1,6,1)$, $(6,1,1)$, $(1,2,3)$, $(1,3,2)$, $(2,1,3)$, $(2,3,1)$, $(3,1,2)$, $(3,2,1)$, $(1,2,4)$, $(1,4,2)$, $(2,1,4)$, $(2,4,1)$, $(4,1,2)$, $(4,2,1)$, $(2,2,2)$.

You are given $T(10, 10) = 869\,985$ and $T(10^3,10^3) \equiv 578\,270\,566 \pmod{1\,004\,535\,809}$.

Find $T(20\,000, 20\,000) \pmod{1\,004\,535\,809}$.

For extended answers, $g(N) = T(10\,000\cdot2^N,10\,000\cdot2^N) \pmod{1\,004\,535\,809}$.

Submit Answers

If $f(N)$ is the problem asked for above, then you need to submit values of $g(N) = f(10000 \times 2^N)$

You need to submit in the format: "N:g(N)", possibly with multiple values at once, separated by commas.

Top Users

🥇 icy
7.00 (15)
🥈 abcvuitunggio
7.00 (8)
🥉 shash4321
6.00 (6)

Data

Stats

Your submissions will appear here

Recent Submissions

1
abcvuitunggio
$g(8)$, $9$ digits 1 hour, 17 minutes ago
2
shash4321
$g(6)$, $9$ digits 1 hour, 25 minutes ago
3
shash4321
$g(5)$, $9$ digits 1 hour, 25 minutes ago
4
shash4321
$g(4)$, $9$ digits 1 hour, 26 minutes ago
5
shash4321
$g(3)$, $9$ digits 1 hour, 26 minutes ago