bogus OGF in A002113 (and very many others)

Joerg Arndt arndt at jjj.de
Mon May 12 21:25:17 CEST 2008


sum(k=1,N, z^(2*k^2)*(1+z^k)/(1-z^k) )
sum((-1)^(k-1)*q^(k+1 choose 2)/(1-q^k), k, 1, inf)
Return-Path: <njas at research.att.com>
X-Ids: 164
Date: Mon, 12 May 2008 16:32:04 -0400
From: "N. J. A. Sloane" <njas at research.att.com>
Message-Id: <200805122032.m4CKW4Na027660 at prim.research.att.com>
Reply-To: njas at research.att.com
X-Mailer: mailx (AT&T/BSD) 9.9 2008-02-12
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: arndt at jjj.de, seqfan at ext.jussieu.fr
Subject: Re: A038048 == A110375
X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-3.0 (shiva.jussieu.fr [134.157.0.164]); Mon, 12 May 2008 22:32:06 +0200 (CEST)
X-Virus-Scanned: ClamAV 0.92/7104/Mon May 12 20:15:41 2008 on shiva.jussieu.fr
X-Virus-Status: Clean
X-Miltered: at jchkmail.jussieu.fr with ID 4828A945.003 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)!
X-j-chkmail-Enveloppe: 4828A945.003/192.20.225.112/mail-dark.research.att.com/mail-yellow.research.att.com/<njas at research.att.com>
X-j-chkmail-Score: MSGID : 4828A945.003 on jchkmail.jussieu.fr : j-chkmail score : XXXX : R=. U=. O=. B=0.600 -> S=0.638
X-j-chkmail-Status: Unsure
Return-Path: <njas at research.att.com>
X-Ids: 166
Date: Mon, 12 May 2008 16:45:27 -0400
From: "N. J. A. Sloane" <njas at research.att.com>
Message-Id: <200805122045.m4CKjRgI027726 at prim.research.att.com>
Reply-To: njas at research.att.com
X-Mailer: mailx (AT&T/BSD) 9.9 2008-02-12
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: arndt at jjj.de, maharri at gmail.com
Subject: Re: bogus OGF in A002113 (and very many others)
Cc: njas at research.att.com, seqfan at ext.jussieu.fr, simon.plouffe at gmail.com,
   simon.plouffe at sympatico.ca
X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-3.0 (shiva.jussieu.fr [134.157.0.166]); Mon, 12 May 2008 22:45:29 +0200 (CEST)
X-Virus-Scanned: ClamAV 0.92/7104/Mon May 12 20:15:41 2008 on shiva.jussieu.fr
X-Virus-Status: Clean
X-Miltered: at jchkmail.jussieu.fr with ID 4828AC68.009 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)!
X-j-chkmail-Enveloppe: 4828AC68.009/192.20.225.112/mail-dark.research.att.com/mail-yellow.research.att.com/<njas at research.att.com>
X-j-chkmail-Score: MSGID : 4828AC68.009 on jchkmail.jussieu.fr : j-chkmail score : XXX : R=. U=. O=. B=0.561 -> S=0.561
X-j-chkmail-Status: Unsure
Return-Path: <mathar at mail.strw.leidenuniv.nl>
X-Ids: 164
Date: Mon, 12 May 2008 22:48:35 +0200
From: Richard Mathar <mathar at strw.leidenuniv.nl>
Message-Id: <200805122048.m4CKmZ6R006957 at amer.strw.leidenuniv.nl>
To: seqfan at ext.jussieu.fr
Subject: number of partitions bench mark
X-LeidenObservatory-MailScanner-Information: Processed through MailScanner at Leiden Observatory
X-LeidenObservatory-MailScanner: Virusscan: Found to be clean
X-LeidenObservatory-MailScanner-SpamCheck: not spam,
	SpamAssassin (not cached, score=0.434, required 4.5, BAYES_00 -2.60,
	SARE_BAYES_7x5 0.80, SARE_BAYES_8x5 0.80, SARE_BAYES_9x5 1.20,
	SUBJECT_FUZZY_TION 0.16, TW_SV 0.08)
X-LeidenObservatory-MailScanner-From: mathar at mail.strw.leidenuniv.nl
X-Spam-Status: No
X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-3.0 (shiva.jussieu.fr [134.157.0.164]); Mon, 12 May 2008 22:48:38 +0200 (CEST)
X-Virus-Scanned: ClamAV 0.92/7104/Mon May 12 20:15:41 2008 on shiva.jussieu.fr
X-Virus-Status: Clean
X-Miltered: at jchkmail.jussieu.fr with ID 4828AD26.006 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)!
X-j-chkmail-Enveloppe: 4828AD26.006/132.229.214.102/maas.strw.leidenuniv.nl/maas.strw.leidenuniv.nl/<mathar at mail.strw.leidenuniv.nl>
X-j-chkmail-Score: MSGID : 4828AD26.006 on jchkmail.jussieu.fr : j-chkmail score : X : R=. U=. O=. B=0.195 -> S=0.195
X-j-chkmail-Status: Ham
Return-Path: <joshua.zucker at gmail.com>
X-Ids: 166
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        bh=R6ksCZoKo+ENpLYro7l2h+Hr430zXYXcWzUizJ92xys=;
        b=h50PEY1EiDoQmM8Yaa5iFFYd/d4kkUqQp7Um/M0nHrPPJl/Yi+11zMLtU8HM1xK52p+P+c4ylo4Hdv002AIR6RO97VTd320DhhYJd/+C89hQeY1npZxt5uLlMP1PM45fDUbNTARsrT6+zMRjq1OWw+sYpHlVPYt03jONF5Wyy2M=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=gwsF6jPJ9vDOP0EVYBoxfR/T2fwBbh3tNfWqk8veJRJdSGwhT2Gtn3iUxDvmz/n541qS+BA9szbuCt1Tzs+Ht4DKjxwiX9EVF5tJ5C2J7hplsSFJHEybij/VvwHQqZvjsZtBmoM1m9pMDGuVbcPhbF+WFCgw75L6bc+t/AVQIu8=
Message-ID: <721e81490805121514q584540cdsd72a61278d02bb35 at mail.gmail.com>
Date: Mon, 12 May 2008 15:14:40 -0700
From: "Joshua Zucker" <joshua.zucker at gmail.com>
To: "Richard Mathar" <mathar at strw.leidenuniv.nl>
Subject: Re: number of partitions bench mark
Cc: seqfan at ext.jussieu.fr
In-Reply-To: <200805122048.m4CKmZ6R006957 at amer.strw.leidenuniv.nl>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <200805122048.m4CKmZ6R006957 at amer.strw.leidenuniv.nl>
X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-3.0 (shiva.jussieu.fr [134.157.0.166]); Tue, 13 May 2008 00:14:44 +0200 (CEST)
X-Virus-Scanned: ClamAV 0.92/7105/Mon May 12 22:14:20 2008 on shiva.jussieu.fr
X-Virus-Status: Clean
X-Miltered: at jchkmail.jussieu.fr with ID 4828C152.005 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)!
X-j-chkmail-Enveloppe: 4828C152.005/74.125.46.29/yw-out-2324.google.com/yw-out-2324.google.com/<joshua.zucker at gmail.com>
X-j-chkmail-Score: MSGID : 4828C152.005 on jchkmail.jussieu.fr : j-chkmail score : X : R=. U=. O=# B=0.187 -> S=0.221
X-j-chkmail-Status: Ham

I didn't try Mathematica but it was the work of only a few minutes in
DrScheme to write the pentagonal number recurrence.  I'd share the
source code but I used an ugly hack - I precomputed the pentagonals up
to a large enough value and precomputed the signs to go with them, and
then just hacked away at the recursion, using memoization to avoid
recomputing old values in the recurrence.  So, ugly code.

I confirm PARI's answer:
11269 -> 231139177231303975514411787649455628959060199360109972557851519105155176180318215891795874905318274163248033071850
partitions

The other values are below in case you would like to check them with yours.

--Joshua Zucker


On Mon, May 12, 2008 at 1:48 PM, Richard Mathar
<mathar at strw.leidenuniv.nl> wrote:
> 11269
231139177231303975514411787649455628959060199360109972557851519105155176180318215891795874905318274163248033071850

> 11566
7958672699445426405771440953515770658326151510699702307294816461579682754354595845201915634351344747017524402065248

> 12376
99017248385851177305125749331254268692069636143943149618007509765629954605089512903256058142212835650280024690475548286


> 12430
183612308490711490511878455859461240643253822575808980147499525550386204601658427998766363882153765438515528391557517695

> 12700
3946960024003488206503243567381587243804394006082319578908117050087243536539117481873104881489885328405561972417839541991


> 12754
7261756919070420409788060626043794642848087861175771277772129563557760822282992173328641540319508310452599831276460527945


> 15013
300666632778197471994806746126441610313495695080917295105045094033586808265364200491184553315961495445684959489918201339252743943581

> 17589
45335612459012933951815830878480775442091783820061717187868448879353797428614153762560165042711595475166891868680787157479271019971074124934090

> 17797
332929387543783698188554831905365899632197136605414673273774323670408101035006940336102998080581855276321815894424234935283527166847977628681783

> 18181
12818757702041882484779137310430826655678863286672423907472403232930518897262027858430557766315506364507441468711804652014942054247921824233352554

> 18421
123122324382911993703590660204413462755544899702466104239165318515062106172029700112471908057442472133274039788590791987501667665046014995515542577

> 18453
166285217690859860353591934893763079216506301406346061243268616906698124878779091648526979885863786311572944145198678170336764360431521130012234959

> 18549
409006786049325622827405735992639595959766309097423230120155932606903214493209303558016570996557353883648380675787477004737872638563809056149522200

> 18597
640902278700248899624521933641642146919890082108532310522186090904028405189639086721065853619341219248416397768347773673511651859192559468349798015

> 18885
9374332371307145539758088248722898369219100068925600196668117726342341231963378315670499914153786963327212592119594171154767255117565909314829383335

> 18949
16969147251317539990826729770177839733020241962352760924387192459466175628601756014248547267216700799283065354778247643688233964117176155324099517500

> 18997
26464634284974117982023809131659117556789020579732726400422200079423004603720594044224174832086219572151505039334730543704825522863005736607113022912

And here's the ugly source code:
(require (planet "memoize.ss" ("dherman" "memoize.plt" 2 1)))

(define (generate-pentagonals k done)
  (cond
    [(>= k done) empty]
    [(= 1 (remainder k 3)) (generate-pentagonals (add1 k) done)]
    [else (cons (* 1/6 k (add1 k)) (generate-pentagonals (add1 k) done))]))

(define PENTAGONALS (generate-pentagonals 1 1000))

(define SIGNED-PENTAGONALS (build-list (length PENTAGONALS)
                                       (lambda (k) (list (expt -1
(floor (* k 1/2)))
                                                         (list-ref
PENTAGONALS k)))))

(define/memo (part-pentagonal n)
  (cond
    [(= n 0) 1]
    [else (apply + (map (lambda (p) (* (first p) (part-pentagonal (- n
(second p)))))
                        (filter (lambda (p) (<= (second p) n))
SIGNED-PENTAGONALS)))]))





More information about the SeqFan mailing list