Permutation of 3-smooth Numbers

Problem Statement

A $3$-smooth number is an integer which has no prime factor larger than $3$. For an integer $N$, we define $S(N)$ as the set of $3$-smooth numbers less than or equal to $N$. For example, $S(20) = \{ 1, 2, 3, 4, 6, 8, 9, 12, 16, 18 \}$.

We define $F(N)$ as the number of permutations of $S(N)$ in which each element comes after all of its proper divisors.

This is one of the possible permutations for $N = 20$.
- $1, 2, 4, 3, 9, 8, 16, 6, 18, 12.$
This is not a valid permutation because $12$ comes before its divisor $6$.
- $1, 2, 4, 3, 9, 8, \boldsymbol{12}, 16, \boldsymbol 6, 18$.

We can verify that $F(6) = 5$, $F(8) = 9$, $F(20) = 450$ and $F(1000) = 635093855 \pmod {1000000007}$.
Find $F(5^{N^2}) \bmod 1000000007$.

Submit Answers

You need to submit in the format: "N:problem(N)", possibly with multiple values at once, separated by commas, with $N$ between $1$ and $100$.

Top Users

🥇 shs10978
100.00 (100)
🥈 liuguangxi
100.00 (100)
🥉 icy
100.00 (100)

Data

Stats

Your submissions will appear here

Recent Submissions

1
liuguangxi
$g(98)$, $9$ digits 3 weeks ago
2
liuguangxi
$g(97)$, $9$ digits 3 weeks ago
3
liuguangxi
$g(96)$, $8$ digits 3 weeks ago
4
liuguangxi
$g(99)$, $9$ digits 3 weeks ago
5
liuguangxi
$g(90)$, $9$ digits 3 weeks ago