login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A324368 Number of partitions of n that contain {1,2} minus number of partitions of n that contain neither 1 nor 2. 0
-1, 0, 0, 0, 0, 1, 1, 3, 4, 7, 10, 16, 21, 32, 43, 60, 80, 110, 143, 192, 248, 325, 417, 539, 682, 872, 1097, 1384, 1728, 2163, 2679, 3327, 4097, 5048, 6182, 7570, 9216, 11223, 13599, 16467, 19862, 23940, 28747, 34496, 41260, 49302, 58751, 69938, 83039, 98502, 116572 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,8

COMMENTS

a(n) > 0 for all n >= 5.

LINKS

Table of n, a(n) for n=0..50.

FORMULA

a(n) = A000041(n-2) + A000041(n-1) - A000041(n).

a(n) ~ exp(Pi*sqrt(2*n/3)) / (4*n*sqrt(3)) * (1 - (sqrt(3/2)/Pi + 73*Pi/(24*sqrt(6)))/sqrt(n) + (73/16 + 3025*Pi^2/6912)/n). - Vaclav Kotesovec, Sep 03 2019

G.f.: (q^2+q-1)/Product_{n>=1} (1-q^n). - Shouvik Datta, Sep 07 2019

MATHEMATICA

Table[-(PartitionsP[n] - PartitionsP[n - 1] - PartitionsP[n - 2]), {n, 0, 20}] (* Shouvik Datta, Sep 07 2019 *)

PROG

(PARI) a(n) = numbpart(n-2) + numbpart(n-1) - numbpart(n); \\ Michel Marcus, Sep 03 2019

CROSSREFS

Cf. A000041.

Sequence in context: A237833 A275633 A004397 * A241654 A047967 A282893

Adjacent sequences:  A324365 A324366 A324367 * A324369 A324370 A324371

KEYWORD

easy,sign

AUTHOR

Max Alekseyev, Sep 03 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 25 13:55 EDT 2021. Contains 346290 sequences. (Running on oeis4.)