Created
November 30, 2020 17:04
-
-
Save hrgnz/10c4c3afb5a332c8ad3428327e6459c0 to your computer and use it in GitHub Desktop.
pe709a.nb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In[]:= ClearAll["Global`*"]; | |
AbsoluteTiming[ | |
nmax = 24680; | |
modnum = 1020202009; | |
dp[0] = 1; dp[1] = 1; | |
Do[dp[n + 1] = | |
Mod[PowerMod[n + 1, -1, modnum]*Sum[dp[2 k]*dp[n - 2 k], | |
{k, 0, Quotient[n, 2]}], modnum], {n, nmax - 1}]; | |
ans = Mod[dp[nmax]*Mod[nmax!, modnum], modnum]] | |
Out[]= {215.379, ???} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment