mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > And now for something completely different

Reply
 
Thread Tools
Old 2017-04-30, 15:31   #23
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

36×13 Posts
Default

Quote:
Originally Posted by Batalov View Post
Partition function is available in GP/Pari (p(n) = numbpart(n)), but it is slow for large values of n. It is possible to calculate p(n) with the Arb implementation.

...the first (PR)prime value for n>=1010 is p(10000076282) and has 111391 decimal digits.
To put a symmetrical coda on this thread:
the first (PR)prime value for n>=1011 is p(100000135540) and has 352269 decimal digits.
Batalov is offline   Reply With Quote
Old 2017-04-30, 16:59   #24
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

373910 Posts
Default

Quote:
Originally Posted by Batalov View Post
To put a symmetrical coda on this thread:
the first (PR)prime value for n>=1011 is p(100000135540) and has 352269 decimal digits.
Congrats!
paulunderwood is offline   Reply With Quote
Old 2018-02-27, 17:03   #25
JM Montolio A
 
Feb 2018

25·3 Posts
Smile Arb is really complex, i use something most easy

Some time ago, i find:

E(n,L)=SUM(i=1..i=L, E(n-L,i) )
Number of partitions of n with L numbers.

G(n,L) = G(n-L,L-1) + G(n-L,L).
Number of partitions of n with L different numbers.

Start values E y G :
N E(N,L)
1 1 ,2 1,1 ,3 1,1,1 ,4 1,2,1,1

N G(N,L)
1 1,2 1 ,3 1,1 ,4 1,1 ,5 1,2 ,6 1,2,1
7 1,3,1 ,8 1,3,2

Then:

p(N) = SUM(L=1 .. L=N, E(N,L) ).

p(n) = E(2n,n)

p(N) = G(N + (1+2+...+N), N) = G( (1+2+...+N), N-1)+1

q(N) = SUM G(N,*).

p(100) =4*43*59*89*211.
q(180) =141231780.

Happy to share it here.

JM M
JM Montolio A is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
A useful function. JM Montolio A Miscellaneous Math 28 2018-03-08 14:29
phi function rula Homework Help 3 2017-01-18 01:41
Have a look at the partition numbers fivemack Factoring 57 2007-12-28 10:37
Partition number congruences fivemack Math 0 2007-05-18 19:39
Linux/SUSE noob trouble - Resize partition OmbooHankvald Linux 19 2005-11-18 10:39

All times are UTC. The time now is 17:19.


Fri Jul 16 17:19:32 UTC 2021 up 49 days, 15:06, 1 user, load averages: 1.45, 1.74, 1.68

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.