cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Previous Showing 21-30 of 38 results. Next

A174713 Triangle read by rows, A173305 (A000009 shifted down twice) * A174712 (diagonalized variant of A000041).

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 2, 1, 2, 3, 2, 2, 4, 2, 2, 3, 5, 3, 4, 3, 6, 4, 4, 3, 5, 8, 5, 6, 6, 5, 10, 6, 8, 6, 5, 7, 12, 8, 10, 9, 10, 7, 15, 10, 12, 12, 10, 7, 11, 18, 12, 16, 15, 15, 14, 11, 22, 15, 20, 18, 20, 14, 11, 15
Offset: 0

Views

Author

Gary W. Adamson, Mar 27 2010

Keywords

Comments

Row sums = A000041, the partition numbers.
The current triangle is the 2nd in an infinite set, followed by A174714 (k=3), and A174715, (k=4); in which row sums of each triangle = A000041.
k-th triangle in the infinite set can be defined as having the sequence:
"Euler transform of ones: (1,1,1,...) interleaved with (k-1) zeros"; shifted down k times (except column 0) in successive columns, then multiplied * triangle A174712, the diagonalized variant of A000041, A174713 begins with A000009 shifted down twice (triangle A173305); where A000009 = the Euler transform of period 2 sequence: [1,0,1,0,...].
Similarly, triangle A174714 begins with A000716 shifted down thrice; where A000716 = the Euler transform of period 3 series: [1,1,0,1,1,0,...]. Then multiply the latter as an infinite lower triangular matrix * A174712, the diagonalized variant of A000041, obtaining triangle A174714 with row sums = A000041.
Case k=4 = triangle A174715 which begins with the Euler transform of period 4 series: [1,1,1,0,1,1,1,0,...], shifted down 4 times in successive columns then multiplied * A174712, the diagonalized variant of A000041.
All triangles in the infinite set have row sums = A000041.
The sequences: "Euler transform of ones interleaved with (k-1) zeros" have the following properties, beginning with k=2:
...
k=2, A000009: = Euler transform of [1,0,1,0,1,0,...] and satisfies
.....A000009. = p(x)/p(x^2), where p(x) = polcoeff A000041; and A000041 =
.....A000009(x) = r(x), then p(x) = r(x) * r(x^2) * r(x^4) * r(x^8) * ...
...
k=3, A000726: = Euler transform of [1,1,0,1,1,0,...] and satisfies
.....A000726(x): = p(x)/p(x^3), and given s(x) = polcoeff A000726, we get
.....A000041(x) = p(x) = s(x) * s(x^3) * s(x^9) * s(x^27) * ...
...
k=4, A001935: = Euler transform of [1,1,1,0,1,1,1,0,...] and satisfies
.....A001935(x) = p(x)/p(x^4) and given t(x) = polcoeff A001935, we get
.....A000041(x) = p(x) = t(x) * t(x^4) * t(x^16) * t(x^64) * ...
...
Also the number of integer partitions of n whose even parts sum to k, for k an even number from zero to n. The version including odd k is A113686. - Gus Wiseman, Oct 23 2023

Examples

			First few rows of the triangle =
1;
1;
1, 1;
2, 1;
2, 1, 2;
3, 2, 2;
4, 2, 2, 3;
5, 3, 4, 3;
6, 4, 4, 3, 5;
8, 5, 6, 6, 5;
10, 6, 8, 6, 5, 7;
12, 8, 10, 9, 10, 7;
15, 10, 12, 12, 10, 7, 11;
18, 12, 16, 15, 15, 14, 11;
22, 15, 20, 18, 20, 14, 11, 15;
...
From _Gus Wiseman_, Oct 23 2023: (Start)
Row n = 9 counts the following partitions:
  (9)          (72)        (54)       (63)      (81)
  (711)        (5211)      (522)      (6111)    (621)
  (531)        (3321)      (4311)     (432)     (441)
  (51111)      (321111)    (411111)   (42111)   (4221)
  (333)        (21111111)  (32211)    (3222)    (22221)
  (33111)                  (2211111)  (222111)
  (3111111)
  (111111111)
(End)
		

Crossrefs

Row sums are A000041.
The odd version is A365067.
The corresponding rank statistic is A366531, odd version A366528.
A000009 counts partitions into odd parts, ranks A066208.
A113685 counts partitions by sum of odd parts, even version A113686.
A239261 counts partitions with (sum of odd parts) = (sum of even parts).

Programs

  • Mathematica
    Table[Length[Select[IntegerPartitions[n],Total[Select[#,EvenQ]]==k&]],{n,0,15},{k,0,n,2}] (* Gus Wiseman, Oct 23 2023 *)

Formula

As infinite lower triangular matrices, A173305 * A174712.
T(n,k) = A000009(n-2k) * A000041(k). - Gus Wiseman, Oct 23 2023

A350941 Number of odd conjugate parts minus number of even conjugate parts in the integer partition with Heinz number n.

Original entry on oeis.org

0, 1, 2, -1, 3, 0, 4, 1, -2, 1, 5, 2, 6, 2, -1, -1, 7, 0, 8, 3, 0, 3, 9, 0, -3, 4, 2, 4, 10, 1, 11, 1, 1, 5, -2, -2, 12, 6, 2, 1, 13, 2, 14, 5, 3, 7, 15, 2, -4, -1, 3, 6, 16, 0, -1, 2, 4, 8, 17, -1, 18, 9, 4, -1, 0, 3, 19, 7, 5, 0, 20, 0, 21, 10, 1, 8, -3, 4
Offset: 0

Views

Author

Gus Wiseman, Jan 28 2022

Keywords

Comments

The Heinz number of a partition (y_1,...,y_k) is prime(y_1)*...*prime(y_k). This gives a bijective correspondence between positive integers and integer partitions.

Examples

			First positions n such that a(n) = 4, 3, 2, 1, 0, -1, -2, -3, -4, together with their prime indices, are:
   7: (4)
   5: (3)
   3: (2)
   2: (1)
   1: ()
   4: (1,1)
   9: (2,2)
  25: (3,3)
  49: (4,4)
		

Crossrefs

A hybrid with A195017 (non-conjugate version) is A350849, conjugate A350942.
Positions of 0's are A350848, counted by A045931.
A000041 = integer partitions, strict A000009.
A056239 adds up prime indices, counted by A001222, row sums of A112798.
A122111 represents conjugation using Heinz numbers.
A257991 counts odd parts, conjugate A344616.
A257992 counts even parts, conjugate A350847.
A316524 = alternating sum of prime indices.
The following rank partitions:
A325698: # of even parts = # of odd parts.
A349157: # of even parts = # of odd conjugate parts, counted by A277579.
A350943: # of even conjugate parts = # of odd parts, counted by A277579.
A350944: # of odd parts = # of odd conjugate parts, counted by A277103.
A350945: # of even parts = # of even conjugate parts, counted by A350948.

Programs

  • Mathematica
    primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
    conj[y_]:=If[Length[y]==0,y,Table[Length[Select[y,#>=k&]],{k,1,Max[y]}]];
    Table[Count[conj[primeMS[n]],?OddQ]-Count[conj[primeMS[n]],?EvenQ],{n,1,50}]

Formula

a(n) = A344616(n) - A350847(n).

A351976 Number of integer partitions of n with (1) as many odd parts as odd conjugate parts and (2) as many even parts as even conjugate parts.

Original entry on oeis.org

1, 1, 0, 1, 1, 1, 1, 1, 2, 2, 2, 4, 5, 5, 5, 6, 9, 11, 11, 16, 21, 22, 24, 31, 41, 46, 48, 64, 82, 91, 98, 120, 155, 175, 188, 237, 297, 329, 357, 437, 544, 607, 658, 803, 987, 1098, 1196, 1432, 1749, 1955, 2126, 2541, 3071, 3417, 3729, 4406, 5291, 5890, 6426
Offset: 0

Views

Author

Gus Wiseman, Mar 14 2022

Keywords

Examples

			The a(n) partitions for selected n:
n = 3     8       11        12        15          16
   ----------------------------------------------------------
    (21)  (332)   (4322)    (4332)    (4443)      (4444)
          (4211)  (4331)    (4422)    (54321)     (53332)
                  (4421)    (4431)    (632211)    (55222)
                  (611111)  (53211)   (633111)    (55411)
                            (621111)  (642111)    (633211)
                                      (81111111)  (642211)
                                                  (643111)
                                                  (7321111)
                                                  (82111111)
		

Crossrefs

The first condition alone is A277103, ranked by A350944, strict A000700.
The second condition alone is A350948, ranked by A350945.
These partitions are ranked by A350949.
A000041 counts integer partitions.
A122111 represents partition conjugation using Heinz numbers.
A195017 = # of even parts - # of odd parts.
There are four statistics:
- A257991 = # of odd parts, conjugate A344616.
- A257992 = # of even parts, conjugate A350847.
There are four other possible pairings of statistics:
- A045931: # even = # odd, ranked by A325698, strict A239241.
- A045931: # even conj = # odd conj, ranked by A350848, strict A352129.
- A277579: # even = # odd conj, ranked by A349157, strict A352131.
- A277579: # even conj = # odd, ranked by A350943, strict A352130.
There are two other possible double-pairings of statistics:
- A351977: # even = # odd, # even conj = # odd conj, ranked by A350946.
- A351981: # even = # odd conj, # odd = # even conj, ranked by A351980.
The case of all four statistics equal is A351978, ranked by A350947.

Programs

A351977 Number of integer partitions of n with as many even parts as odd parts and as many even conjugate parts as odd conjugate parts.

Original entry on oeis.org

1, 0, 0, 1, 0, 0, 0, 0, 1, 2, 1, 0, 2, 0, 2, 4, 2, 1, 6, 6, 7, 9, 11, 10, 13, 17, 17, 21, 28, 36, 35, 41, 58, 71, 72, 90, 106, 121, 142, 178, 191, 216, 269, 320, 344, 400, 486, 564, 633, 734, 867, 991, 1130, 1312, 1509, 1702, 1978, 2288, 2582, 2917, 3404
Offset: 0

Views

Author

Gus Wiseman, Mar 14 2022

Keywords

Examples

			The a(n) partitions for selected n (A..C = 10..12):
n = 3     9         15            18          20
   ----------------------------------------------------------
    (21)  (63)      (A5)          (8433)      (8543)
          (222111)  (632211)      (8532)      (8741)
                    (642111)      (8631)      (C611)
                    (2222211111)  (43322211)  (43332221)
                                  (44322111)  (44432111)
                                  (44421111)  (84221111)
                                              (422222111111)
		

Crossrefs

The first condition alone is A045931, ranked by A325698, strict A239241.
The second condition alone is A045931, ranked by A350848, strict A352129.
These partitions are ranked by A350946.
The strict case is A352128.
There are four statistics:
- A257991 = # of odd parts, conjugate A344616.
- A257992 = # of even parts, conjugate A350847.
There are four additional pairings of statistics:
- A277579: # even = # odd conj, ranked by A349157, strict A352131.
- A277579: # even conj = # odd, ranked by A350943, strict A352130.
- A277103: # odd = # odd conj, ranked by A350944, strict A000700.
- A350948: # even = # even conj, ranked by A350945.
There are two additional double-pairings of statistics:
- A351981, ranked by A351980.
- A351976, ranked by A350949.
The case of all four statistics equal is A351978, ranked by A350947.

Programs

  • Mathematica
    conj[y_]:=If[Length[y]==0,y,Table[Length[Select[y,#>=k&]],{k,1,Max[y]}]];
    Table[Length[Select[IntegerPartitions[n],Count[#,?OddQ]==Count[#,?EvenQ]&&Count[conj[#],?OddQ]==Count[conj[#],?EvenQ]&]],{n,0,30}]

A351978 Number of integer partitions of n for which the number of even parts, the number of odd parts, the number of even conjugate parts, and the number of odd conjugate parts are all equal.

Original entry on oeis.org

1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 2, 0, 0, 2, 0, 1, 0, 6, 1, 3, 1, 8, 5, 3, 5, 7, 14, 2, 13, 9, 28, 5, 22, 26, 44, 17, 30, 60, 59, 42, 41, 120, 84, 84, 66, 204, 143, 144, 131, 325, 268, 226, 261, 486, 498, 344, 488, 739, 874
Offset: 0

Views

Author

Gus Wiseman, Mar 15 2022

Keywords

Examples

			The a(n) partitions for selected n (A = 10):
n = 3    12     19       21       23       24         27
   --------------------------------------------------------------
    21   4332   633322   643332   644333   84332211   655443
         4431   643321   654321   654332   84441111   655542
                644311   665211   654431   85322211   665541
                653221            655322   86322111   666333
                654211            655421   86421111   666531
                664111            664331              A522221111
                                  665321              A622211111
                                  666311
		

Crossrefs

The strict case appears to be the indicator function for A014105.
These partitions are ranked by A350947.
There are four statistics:
- A257991 = # of odd parts, conjugate A344616.
- A257992 = # of even parts, conjugate A350847.
There are six pairings of statistics:
- A045931: # of even parts = # of odd parts:
- ordered A098123
- strict A239241
- ranked by A325698
- A045931: # even conj = # odd conj, ranked by A350848, strict A352129.
- A277579: # even = # odd conj, ranked by A349157, strict A352131.
- A277103: # odd = # odd conj, ranked by A350944, strict A000700.
- A277579: # even conj = # odd, ranked by A350943, strict A352130.
- A350948: # even = # even conj, ranked by A350945.
There are three double-pairings of statistics:
- A351976, ranked by A350949.
- A351977, ranked by A350946.
- A351981, ranked by A351980.
A000041 counts integer partitions, strict A000009.
A103919 and A116482 count partitions by sum and number of odd/even parts.
A195017 = # of even parts - # of odd parts.

Programs

  • Mathematica
    conj[y_]:=If[Length[y]==0,y,Table[Length[Select[y,#>=k&]],{k,1,Max[y]}]];
    Table[Length[Select[IntegerPartitions[n],Count[#,?EvenQ]==Count[#,?OddQ]==Count[conj[#],?EvenQ]==Count[conj[#],?OddQ]&]],{n,0,30}]

A351980 Heinz numbers of integer partitions with as many even parts as odd conjugate parts and as many odd parts as even conjugate parts.

Original entry on oeis.org

1, 6, 84, 126, 140, 210, 490, 525, 686, 875, 1404, 1456, 2106, 2184, 2288, 2340, 3432, 3510, 5460, 6760, 7644, 8190, 8580, 8775, 9100, 9464, 11466, 12012, 12740, 12870, 13650, 14300, 14625, 15808, 18018, 18468, 19110, 19152, 20020, 20672, 21450, 22308, 23712
Offset: 1

Views

Author

Gus Wiseman, Mar 14 2022

Keywords

Comments

The Heinz number of a partition (y_1,...,y_k) is prime(y_1)*...*prime(y_k). This gives a bijective correspondence between positive integers and integer partitions.

Examples

			The terms together with their prime indices begin:
     1: ()
     6: (2,1)
    84: (4,2,1,1)
   126: (4,2,2,1)
   140: (4,3,1,1)
   210: (4,3,2,1)
   490: (4,4,3,1)
   525: (4,3,3,2)
   686: (4,4,4,1)
   875: (4,3,3,3)
  1404: (6,2,2,2,1,1)
  1456: (6,4,1,1,1,1)
  2106: (6,2,2,2,2,1)
  2184: (6,4,2,1,1,1)
  2288: (6,5,1,1,1,1)
  2340: (6,3,2,2,1,1)
		

Crossrefs

The first condition alone is A349157, counted by A277579.
The second condition alone is A350943, counted by A277579.
There are two other possible double-pairings of statistics:
- A350946, counted by A351977.
- A350949, counted by A351976.
The case of all four statistics equal is A350947, counted by A351978.
These partitions are counted by A351981.
Partitions with as many even as odd parts:
- counted by A045931
- strict case counted by A239241
- ranked by A325698
- conjugate ranked by A350848
- strict conjugate case counted by A352129
A056239 adds up prime indices, counted by A001222, row sums of A112798.
A122111 represents partition conjugation using Heinz numbers.
A195017 = # of even parts - # of odd parts.
A257991 counts odd parts, conjugate A344616.
A257992 counts even parts, conjugate A350847.
A316524 = alternating sum of prime indices.
A350944: # of odd parts = # of odd conjugate parts, counted by A277103.
A350945: # of even parts = # of even conjugate parts, counted by A350948.

Programs

Formula

Closed under A122111 (conjugation).
Intersection of A349157 and A350943.
A257992(a(n)) = A344616(a(n)).
A257991(a(n)) = A350847(a(n)).

A351981 Number of integer partitions of n with as many even parts as odd conjugate parts, and as many odd parts as even conjugate parts.

Original entry on oeis.org

1, 0, 0, 1, 0, 0, 0, 0, 1, 2, 1, 0, 2, 2, 2, 4, 2, 1, 6, 8, 7, 9, 13, 14, 15, 19, 21, 23, 32, 40, 41, 45, 66, 81, 80, 96, 124, 139, 160, 194, 221, 246, 303, 360, 390, 446, 546, 634, 703, 810, 971, 1115, 1250, 1448, 1685, 1910
Offset: 0

Views

Author

Gus Wiseman, Mar 15 2022

Keywords

Examples

			The a(n) partitions for selected n:
n = 3    9      15       18       19       20         21
   -----------------------------------------------------------
    21   4221   622221   633222   633322   644321     643332
         4311   632211   643221   643321   653321     654321
                642111   643311   644221   654221     665211
                651111   644211   644311   654311     82222221
                         653211   653221   82222211   83222211
                         663111   653311   84221111   84222111
                                  654211   86111111   85221111
                                  664111              86211111
                                                      87111111
For example, the partition (6,6,3,1,1,1) has conjugate (6,3,3,2,2,2), and has 2 even, 4 odd, 4 even conjugate, and 2 odd conjugate parts, so is counted under a(18).
		

Crossrefs

The first condition alone is A277579, ranked by A349157.
The second condition alone is A277579, ranked by A350943.
These partitions are ranked by A351980.
There are four statistics:
- A257991 = # of odd parts, conjugate A344616.
- A257992 = # of even parts, conjugate A350847.
There are four other pairings of statistics:
- A045931: # of even parts = # of odd parts:
- conjugate also A045931
- ordered A098123
- strict A239241
- ranked by A325698
- conjugate ranked by A350848
- A277103: # of odd parts = # of odd conjugate parts, ranked by A350944.
- A350948: # of even parts = # of even conjugate parts, ranked by A350945.
There are two other double-pairings of statistics:
- A351976, ranked by A350949.
- A351977, ranked by A350946.
The case of all four statistics equal is A351978, ranked by A350947.

Programs

A108949 Number of partitions of n with more even parts than odd parts.

Original entry on oeis.org

0, 0, 1, 0, 2, 1, 3, 3, 6, 7, 10, 14, 19, 26, 33, 45, 58, 77, 97, 127, 161, 205, 259, 326, 411, 510, 639, 786, 980, 1197, 1482, 1800, 2216, 2677, 3275, 3942, 4793, 5749, 6951, 8309, 9995, 11912, 14259, 16944, 20194, 23926, 28402, 33559, 39687, 46767, 55120, 64780, 76110, 89222
Offset: 0

Views

Author

Len Smiley, Jul 21 2005

Keywords

Examples

			a(6) = 3: {[6], [4,2], [2,2,2]}; a(7) = 3: {[4,2,1], [3,2,2], [2,2,2,1]}.
		

Crossrefs

Cf. A045931 for #even parts = #odd parts, A108950 for #even parts < #odd parts.
Cf. A171966, A130780. - Reinhard Zumkeller, Jan 21 2010

Programs

  • Maple
    with(combinat,partition):
    evnbigrodd:=proc(n::nonnegint)
       local evencount,oddcount,bigcount,parts,i,j;
       bigcount:=0;
       partitions:=partition(n);
       for i from 1 to nops(partitions) do
          evencount:=0;
          oddcount:=0;
          for j from 1 to nops(partitions[i]) do
             if (op(j,partitions[i]) mod 2 <>0) then
                oddcount:=oddcount+1
             fi;
             if (op(j,partitions[i]) mod 2 =0) then
                evencount:=evencount+1
             fi
          od;
          if (evencount>oddcount) then
             bigcount:=bigcount+1
          fi
       od;
       return(bigcount)
    end proc;
    seq(evnbigrodd(i),i=1..42);
    # second Maple program:
    b:= proc(n, i, t) option remember; `if`(n=0,
          `if`(t<0, 1, 0), `if`(i<1, 0, b(n, i-1, t)+
          `if`(i>n, 0, b(n-i, i, t+(2*irem(i, 2)-1)))))
        end:
    a:= n-> b(n$2, 0):
    seq(a(n), n=0..80);  # Alois P. Heinz, Mar 30 2014
  • Mathematica
    p[n_] := p[n] = Select[IntegerPartitions[n], Count[#, ?OddQ] == Count[#, ?EvenQ] &]; t = Table[p[n], {n, 0, 10}] (* partitions of n with # odd parts = # even parts *)
    TableForm[t] (* partitions, vertical format *)
    Table[Length[p[n]], {n, 0, 30}] (* A045931 *)
    (* Peter J. C. Moses, Mar 10 2014 *)
    b[n_, i_, t_] := b[n, i, t] = If[n==0, If[t<0, 1, 0], If[i<1, 0, b[n, i-1, t] + If[i>n, 0, b[n-i, i, t+(2*Mod[i, 2]-1)]]]]; a[n_] := b[n, n, 0]; Table[a[n], {n, 0, 80}] (* Jean-François Alcover, Nov 02 2015, after Alois P. Heinz *)
  • PARI
    a(n) = {nb = 0; forpart(p=n, nb += (2*#(select(x->x%2, Vec(p))) < #p);); nb;} \\ Michel Marcus, Nov 02 2015

Formula

a(n) = A171966(n) - A045931(n) = A171967(n) - A108950(n). - Reinhard Zumkeller, Jan 21 2010
a(n) = Sum_{k=-floor(n/2)+(n mod 2)..-1} A240009(n,k). - Alois P. Heinz, Mar 30 2014
G.f.: (Product_{k>=1} 1/(1-x^(2*k-1)))*Sum_{n>=1} q^(2*n^2)*(1-q^(n))/Product_{k=1..n} (1-q^(2*k))^2. - Jeremy Lovejoy, Jan 12 2021

Extensions

More terms from Joerg Arndt, Oct 04 2012

A108950 Number of partitions of n with more odd parts than even parts.

Original entry on oeis.org

1, 1, 2, 3, 4, 7, 9, 14, 18, 27, 35, 49, 64, 86, 113, 148, 192, 247, 319, 404, 517, 649, 822, 1024, 1285, 1590, 1979, 2436, 3007, 3682, 4515, 5501, 6703, 8131, 9851, 11899, 14344, 17252, 20703, 24804, 29640, 35377, 42115, 50085, 59415, 70420, 83261, 98365, 115947, 136557
Offset: 1

Views

Author

Len Smiley, Jul 21 2005

Keywords

Examples

			a(4) = 3: {[3,1], [2,1,1], [1,1,1,1]}; a(5) = 4: {[5], [3,1,1], [2,1,1,1], [1,1,1,1,1]}.
		

Crossrefs

Cf. A045931 for #even parts = #odd parts, A108949 for #even parts > #odd parts.
Cf. A171966, A171967. - Reinhard Zumkeller, Jan 21 2010

Programs

  • Maple
    with(combinat,partition):oddbigrevn:=proc(n::nonnegint) local evencount,oddcount,bigcount,parts,i,j; printlevel:=-1;bigcount:=0; partitions:=partition(n);for i from 1 to nops(partitions) do evencount:=0; oddcount:=0;for j from 1 to nops(partitions[i]) do if (op(j,partitions[i]) mod 2 <>0) then oddcount:=oddcount+1 fi; if (op(j,partitions[i]) mod 2 =0) then evencount:=evencount+1 fi od; if (evencount0, 1, 0), `if`(i<1, 0, b(n, i-1, t)+
          `if`(i>n, 0, b(n-i, i, t+(2*irem(i, 2)-1)))))
        end:
    a:= n-> b(n$2, 0):
    seq(a(n), n=1..80);  # Alois P. Heinz, Mar 30 2014
  • Mathematica
    p[n_] := p[n] = Select[IntegerPartitions[n], Count[#, ?OddQ] > Count[#, ?EvenQ] &]; t = Table[p[n], {n, 0, 15}] (* partitions of n with # odd parts > # even parts *)
    TableForm[t] (* partitions, vertical format *)
    Table[Length[p[n]], {n, 1, 30}] (* A108950 *)
    (* Peter J. C. Moses, Mar 10 2014 *)
    b[n_, i_, t_] := b[n, i, t] = If[n==0, If[t>0, 1, 0], If[i<1, 0, b[n, i-1, t] + If[i>n, 0, b[n-i, i, t + (2*Mod[i, 2]-1)]]]]; a[n_] := b[n, n, 0]; Table[a[n], {n, 1, 80}] (* Jean-François Alcover, Nov 16 2015, after Alois P. Heinz *)

Formula

G.f.: Sum_{k>=0} x^k*(1-x^(2*k))/Product_{i=1..k} (1-x^(2*i))^2. - Vladeta Jovovic, Aug 19 2007
a(n) = A130780(n) - A045931(n) = A171967(n) - A108949(n). - Reinhard Zumkeller, Jan 21 2010
a(n) = Sum_{k=1..n} A240009(n,k). - Alois P. Heinz, Mar 30 2014
G.f.: (Product_{k>=1} 1/(1-x^(2*k-1)))*Sum_{n>=1} q^(2*n^2-n)*(1-q^(2*n))/Product_{k=1..n} (1-q^(2*k))^2. - Jeremy Lovejoy, Jan 12 2021

Extensions

More terms from Joerg Arndt, Oct 04 2012

A300788 Number of strict integer partitions of n in which the even parts appear as often at even positions as at odd positions.

Original entry on oeis.org

1, 1, 0, 1, 1, 1, 2, 2, 3, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 19, 23, 26, 30, 35, 42, 47, 54, 62, 73, 82, 94, 107, 124, 139, 158, 179, 206, 230, 260, 293, 334, 372, 420, 470, 532, 591, 664, 740, 835, 924, 1034, 1148, 1288, 1422, 1588, 1756, 1962, 2161, 2404
Offset: 0

Views

Author

Gus Wiseman, Mar 12 2018

Keywords

Examples

			The a(9) = 3 strict partitions: (9), (621), (531). Missing are: (81), (72), (63), (54), (432).
		

Crossrefs

Programs

  • Mathematica
    cobal[y_]:=Sum[(-1)^x,{x,Join@@Position[y,_?EvenQ]}];
    Table[Length[Select[IntegerPartitions[n],cobal[#]===0&&UnsameQ@@#&]],{n,0,40}]

Extensions

a(41)-a(58) from Alois P. Heinz, Mar 13 2018
Previous Showing 21-30 of 38 results. Next