login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A238882 Coefficients in a variant of Ramanujan's wrong identity for prime number partitions. 1
1, 1, 1, 1, 1, -1, 1, 1, -1, 1, -1, -1, 1, -1, 1, -2, 2, -1, 3, 1, 2, 1, -1, -4, 1, -4, -4, -10, -2, -8, -4, -5, -4, -1, 1, 2, 5, 6, 13, 12, 16, 18, 21, 25, 23, 30, 22, 23, 21, 21, 18, 14, 8, -1, -9, -20, -36, -36, -51, -61, -75, -80, -96, -103 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,16
COMMENTS
Consider the g.f. of the prime parts partition numbers, GF = 1/Product_{k>=1} (1-x^prime(k)), cf. A000607. Then consecutively subtract a(n)*x^b(n)/Product_{k=1..n} (1-x^k), n=0,1,2,3,... where a(n)*x^b(n) is the leading term of the remaining expression, GF - previously subtracted terms. Sequence A238804 lists the exponents b(n), here we list the coefficients a(n).
The identity Ramanujan considered, GF = Sum_{n>=0} x^Sum_{k=1..n} prime(k)/Product_{k=1..n} (1-x^k), or A000607 = A046676, is wrong: In the way they are defined above, the pattern of b(n) = (sum of first n primes) breaks after b(4)=17; the pattern a(n)=1 breaks also after n=4 (which yields this sequence), and the nontrivial cancellations stop after the power b(5)=21, followed by 22, 24, 25, 26, 27, ...
LINKS
EXAMPLE
GF = 1/((1-x^2)(1-x^3)(1-x^5)(1-x^7)(1-x^11)...) = 1+x^2+x^3+x^4+2*x^5+... (cf. A000607)
=> a(0)=1, b(0)=0, GF - 1 = x^2 + ....
=> a(1)=1, b(1)=2, GF - 1 - x^2/(1-x) = x^5 + ...
=> a(2)=1, b(2)=5, GF - 1 - x^2/(1-x) - x^5/(1-x)(1-x^2) = x^10 + ...
=> a(3)=1, b(3)=10, GF - ... - x^10/(1-x)(1-x^2)(1-x^3) = x^17 + ...
=> a(4)=1, b(4)=17, GF - ... - x^17/(1-x)(1-x^2)(1-x^3)(1-x^4) = -x^21+...
=> a(5)=-1, b(5)=21, GF - ... + x^21/... etc.
PROG
(PARI) p=1/prod(k=1, 25, 1-x^prime(k), 1+O(x^999))/* Note: p1+...+p25 > 1000 */; for(k=0, 99, print1(polcoeff(p, c=valuation(p, x)), ", "); p-=polcoeff(p, c)*x^c/prod(j=1, k, 1-x^j, O(x^199)+1))
CROSSREFS
Sequence in context: A325541 A260258 A283196 * A279287 A135352 A320040
KEYWORD
sign
AUTHOR
M. F. Hasler, Mar 06 2014
EXTENSIONS
Example section corrected by Vaclav Kotesovec, Sep 12 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 13:12 EDT 2024. Contains 371969 sequences. (Running on oeis4.)