1, 2, 4, 8, 12, 16, 32, 36, 48, 64, 72, 128, 144, 180, 192, 256, 288, 432, 512, 576, 720, 768, 900, 1024, 1152, 1296, 1728, 1800, 2048, 2304, 2592, 2880, 3072, 3600, 4096, 4608, 5184, 6300, 6480, 6912, 7200, 8192, 9216, 10368, 10800, 11520, 12288, 14400, 15552, 16384, 18432
Offset: 1
Original entry on oeis.org
4, 8, 9, 12, 16, 18, 20, 25, 27, 28, 32, 36, 44, 45, 48, 49, 50, 52, 63, 64, 68, 72, 75, 76, 80, 81, 92, 98, 99, 100, 108, 112, 116, 117, 121, 124, 125, 128, 144, 147, 148, 153, 162, 164, 169, 171, 172, 175, 176, 180, 188, 192, 196, 200, 207, 208, 212, 225, 236, 242, 243, 244, 245
Offset: 1
44 is a term, since 44 = 2*11*2.
52 is a term, since 52 = 2*13*2.
180 is a term, since 180 = 2*3*5*3*2.
676 is a term, since 676 = 2*13*13*2.
-
isok(n)=my(f=factor(n)[,2]); vecsum(f)>=2 && #select(e->e%2, f)<=1 \\ Andrew Howroyd, Oct 02 2024
-
from math import isqrt
from sympy.ntheory.factor_ import core, isprime
def ok(n): return n > 3 and (isqrt(n)**2 == n or (not isprime(n) and isprime(core(n))))
print([k for k in range(1, 246) if ok(k)]) # Michael S. Branicky, Oct 03 2024
A025065
Number of palindromic partitions of n.
Original entry on oeis.org
1, 1, 2, 2, 4, 4, 7, 7, 12, 12, 19, 19, 30, 30, 45, 45, 67, 67, 97, 97, 139, 139, 195, 195, 272, 272, 373, 373, 508, 508, 684, 684, 915, 915, 1212, 1212, 1597, 1597, 2087, 2087, 2714, 2714, 3506, 3506, 4508, 4508, 5763, 5763, 7338, 7338, 9296, 9296, 11732, 11732, 14742, 14742, 18460, 18460, 23025, 23025, 28629, 28629
Offset: 0
The partitions for the first few values of n are as follows:
n: partitions .......................... number
1: 1 ................................... 1
2: 2 11 ................................ 2
3: 3 111 ............................... 2
4: 4 22 121 1111 ....................... 4
5: 5 131 212 11111 ..................... 4
6: 6 141 33 222 1221 11211 111111 ...... 7
7: 7 151 313 11311 232 21112 1111111 ... 7
From _Reinhard Zumkeller_, Jan 23 2010: (Start)
Partitions into 1,2,4,6,... for the first values of n:
1: 1 ....................................... 1
2: 2 11 .................................... 2
3: 21 111 .................................. 2
4: 4 22 211 1111 ........................... 4
5: 41 221 2111 11111 ....................... 4
6: 6 42 4211 222 2211 21111 111111.......... 7
7: 61 421 42111 2221 22111 211111 1111111 .. 7. (End)
The ordered version (palindromic compositions) is
A016116.
The case of palindromic prime signature is
A242414.
Palindromic partitions are ranked by
A265640, with complement
A229153.
The case of palindromic plane trees is
A319436.
The multiplicative version (palindromic factorizations) is
A344417.
A000569 counts graphical partitions.
Cf.
A000041,
A067538,
A143773,
A209816,
A338914,
A338915,
A340387,
A344296,
A344414,
A344415,
A344416.
-
a025065 = p (1:[2,4..]) where
p [] _ = 0
p _ 0 = 1
p ks'@(k:ks) m | m < k = 0
| otherwise = p ks' (m - k) + p ks m
-- Reinhard Zumkeller, Aug 12 2011
-
import Data.List (group)
a025065 = length . filter (<= 1) .
map (sum . map ((`mod` 2) . length) . group) . ps 1
where ps x 0 = [[]]
ps x y = [t:ts | t <- [x..y], ts <- ps t (y - t)]
-- Reinhard Zumkeller, Dec 18 2013
-
Map[Length[Select[IntegerPartitions[#], Count[OddQ[Transpose[Tally[#]][[2]]], True] <= 1 &]] &, Range[40]] (* Peter J. C. Moses, Jan 20 2014 *)
n = 8; Select[IntegerPartitions[n], Count[OddQ[Transpose[Tally[#]][[2]]], True] <= 1 &] (* Peter J. C. Moses, Jan 20 2014 *)
CoefficientList[Series[1/((1 - x) Product[1 - x^(2 n), {n, 1, 50}]), {x, 0, 60}], x] (* Clark Kimberling, Mar 14 2014 *)
-
N=66; q='q+O('q^N); Vec( 1/((1-q)*eta(q^2)) ) \\ Joerg Arndt, Mar 11 2014
Prepended a(0)=1, added more terms,
Joerg Arndt, Mar 11 2014
A035363
Number of partitions of n into even parts.
Original entry on oeis.org
1, 0, 1, 0, 2, 0, 3, 0, 5, 0, 7, 0, 11, 0, 15, 0, 22, 0, 30, 0, 42, 0, 56, 0, 77, 0, 101, 0, 135, 0, 176, 0, 231, 0, 297, 0, 385, 0, 490, 0, 627, 0, 792, 0, 1002, 0, 1255, 0, 1575, 0, 1958, 0, 2436, 0, 3010, 0, 3718, 0, 4565, 0, 5604, 0, 6842, 0, 8349, 0, 10143, 0, 12310, 0
Offset: 0
From _Joerg Arndt_, Jun 11 2013: (Start)
There are a(12)=11 symmetric unimodal compositions of 12+2=14 where the maximal part appears twice:
01: [ 1 1 1 1 1 2 2 1 1 1 1 1 ]
02: [ 1 1 1 1 3 3 1 1 1 1 ]
03: [ 1 1 1 4 4 1 1 1 ]
04: [ 1 1 2 3 3 2 1 1 ]
05: [ 1 1 5 5 1 1 ]
06: [ 1 2 4 4 2 1 ]
07: [ 1 6 6 1 ]
08: [ 2 2 3 3 2 2 ]
09: [ 2 5 5 2 ]
10: [ 3 4 4 3 ]
11: [ 7 7 ]
There are a(14)=15 symmetric unimodal compositions of 14 where the maximal part appears an even number of times:
01: [ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ]
02: [ 1 1 1 1 1 2 2 1 1 1 1 1 ]
03: [ 1 1 1 1 3 3 1 1 1 1 ]
04: [ 1 1 1 2 2 2 2 1 1 1 ]
05: [ 1 1 1 4 4 1 1 1 ]
06: [ 1 1 2 3 3 2 1 1 ]
07: [ 1 1 5 5 1 1 ]
08: [ 1 2 2 2 2 2 2 1 ]
09: [ 1 2 4 4 2 1 ]
10: [ 1 3 3 3 3 1 ]
11: [ 1 6 6 1 ]
12: [ 2 2 3 3 2 2 ]
13: [ 2 5 5 2 ]
14: [ 3 4 4 3 ]
15: [ 7 7 ]
(End)
a(8)=5 because we have [8], [6,2], [4,4], [4,2,2], and [2,2,2,2]. - _Emeric Deutsch_, Jan 27 2016
From _Gus Wiseman_, May 22 2021: (Start)
The a(0) = 1 through a(12) = 11 partitions into even parts are the following (empty columns shown as dots, A = 10, C = 12). The Heinz numbers of these partitions are given by A066207.
() . (2) . (4) . (6) . (8) . (A) . (C)
(22) (42) (44) (64) (66)
(222) (62) (82) (84)
(422) (442) (A2)
(2222) (622) (444)
(4222) (642)
(22222) (822)
(4422)
(6222)
(42222)
(222222)
(End)
- Mohammad K. Azarian, A Generalization of the Climbing Stairs Problem, Mathematics and Computer Education, Vol. 31, No. 1, pp. 24-28, Winter 1997. MathEduc Database (Zentralblatt MATH, 1997c.01891).
- Mohammad K. Azarian, A Generalization of the Climbing Stairs Problem II, Missouri Journal of Mathematical Sciences, Vol. 16, No. 1, Winter 2004, pp. 12-17. Zentralblatt MATH, Zbl 1071.05501.
Bisection (even part) gives the partition numbers
A000041.
Note: A-numbers of ranking sequences are in parentheses below.
The version for parts divisible by 3 instead of 2 is
A035377.
The Heinz numbers of these partitions are given by
A066207.
The ordered version (compositions) is
A077957 prepended by (1,0).
The multiplicative version (factorizations) is
A340785.
The following count partitions of even length:
Cf.
A000041,
A000290,
A087897,
A100484,
A110618,
A209816,
A210249,
A233771,
A339004,
A340385,
A340387,
A340786,
A341447.
-
ZL:= [S, {C = Cycle(B), S = Set(C), E = Set(B), B = Prod(Z,Z)}, unlabelled]: seq(combstruct[count](ZL, size=n), n=0..69); # Zerinvary Lajos, Mar 26 2008
g := 1/mul(1-x^(2*k), k = 1 .. 100): gser := series(g, x = 0, 80): seq(coeff(gser, x, n), n = 0 .. 78); # Emeric Deutsch, Jan 27 2016
# Using the function EULER from Transforms (see link at the bottom of the page).
[1,op(EULER([0,1,seq(irem(n,2),n=0..66)]))]; # Peter Luschny, Aug 19 2020
# next Maple program:
a:= n-> `if`(n::odd, 0, combinat[numbpart](n/2)):
seq(a(n), n=0..84); # Alois P. Heinz, Jun 22 2021
-
nmax = 50; s = Range[2, nmax, 2];
Table[Count[IntegerPartitions@n, x_ /; SubsetQ[s, x]], {n, 0, nmax}] (* Robert Price, Aug 05 2020 *)
-
from sympy import npartitions
def A035363(n): return 0 if n&1 else npartitions(n>>1) # Chai Wah Wu, Sep 23 2023
A320924
Heinz numbers of multigraphical partitions.
Original entry on oeis.org
1, 4, 9, 12, 16, 25, 27, 30, 36, 40, 48, 49, 63, 64, 70, 75, 81, 84, 90, 100, 108, 112, 120, 121, 144, 147, 154, 160, 165, 169, 175, 189, 192, 196, 198, 210, 220, 225, 243, 250, 252, 256, 264, 270, 273, 280, 286, 289, 300, 324, 325, 336, 343, 351, 352, 360
Offset: 1
The sequence of all multigraphical partitions begins: (), (11), (22), (211), (1111), (33), (222), (321), (2211), (3111), (21111), (44), (422), (111111), (431), (332), (2222), (4211), (3221), (3311), (22211), (41111), (32111), (55), (221111).
From _Gus Wiseman_, May 23 2021: (Start)
The sequence of terms together with their prime indices and a multigraph realizing each begins:
1: () | {}
4: (11) | {{1,2}}
9: (22) | {{1,2},{1,2}}
12: (112) | {{1,3},{2,3}}
16: (1111) | {{1,2},{3,4}}
25: (33) | {{1,2},{1,2},{1,2}}
27: (222) | {{1,2},{1,3},{2,3}}
30: (123) | {{1,3},{2,3},{2,3}}
36: (1122) | {{1,2},{3,4},{3,4}}
40: (1113) | {{1,4},{2,4},{3,4}}
48: (11112) | {{1,2},{3,5},{4,5}}
49: (44) | {{1,2},{1,2},{1,2},{1,2}}
63: (224) | {{1,3},{1,3},{2,3},{2,3}}
(End)
These partitions are counted by
A209816.
The case with odd weights is
A322109.
The conjugate case of equality is
A340387.
The conjugate version with odd weights allowed is
A344291.
The conjugate opposite version is
A344292.
The opposite version with odd weights allowed is
A344296.
The conjugate opposite version with odd weights allowed is
A344414.
A000070 counts non-multigraphical partitions.
A025065 counts palindromic partitions.
A035363 counts partitions into even parts.
A110618 counts partitions that are the vertex-degrees of some set multipartition with no singletons.
A334201 adds up all prime indices except the greatest.
Cf.
A000041,
A000569,
A007717,
A096373,
A265640,
A283877,
A306005,
A318361,
A320459,
A320911,
A320922,
A320923,
A320925.
-
prptns[m_]:=Union[Sort/@If[Length[m]==0,{{}},Join@@Table[Prepend[#,m[[ipr]]]&/@prptns[Delete[m,List/@ipr]],{ipr,Select[Prepend[{#},1]&/@Select[Range[2,Length[m]],m[[#]]>m[[#-1]]&],UnsameQ@@m[[#]]&]}]]];
Select[Range[1000],prptns[Flatten[MapIndexed[Table[#2,{#1}]&,If[#==1,{},Flatten[Cases[FactorInteger[#],{p_,k_}:>Table[PrimePi[p],{k}]]]]]]]!={}&]
A344296
Numbers with at least as many prime factors (counted with multiplicity) as half their sum of prime indices.
Original entry on oeis.org
1, 2, 3, 4, 6, 8, 9, 10, 12, 16, 18, 20, 24, 27, 28, 30, 32, 36, 40, 48, 54, 56, 60, 64, 72, 80, 81, 84, 88, 90, 96, 100, 108, 112, 120, 128, 144, 160, 162, 168, 176, 180, 192, 200, 208, 216, 224, 240, 243, 252, 256, 264, 270, 280, 288, 300, 320, 324, 336, 352
Offset: 1
The sequence of terms together with their prime indices begins:
1: {} 30: {1,2,3}
2: {1} 32: {1,1,1,1,1}
3: {2} 36: {1,1,2,2}
4: {1,1} 40: {1,1,1,3}
6: {1,2} 48: {1,1,1,1,2}
8: {1,1,1} 54: {1,2,2,2}
9: {2,2} 56: {1,1,1,4}
10: {1,3} 60: {1,1,2,3}
12: {1,1,2} 64: {1,1,1,1,1,1}
16: {1,1,1,1} 72: {1,1,1,2,2}
18: {1,2,2} 80: {1,1,1,1,3}
20: {1,1,3} 81: {2,2,2,2}
24: {1,1,1,2} 84: {1,1,2,4}
27: {2,2,2} 88: {1,1,1,5}
28: {1,1,4} 90: {1,2,2,3}
The case with difference at least 1 is
A322136.
A300061 lists numbers whose sum of prime indices is even.
Cf.
A001399,
A002865,
A025147,
A027336,
A036036,
A067712,
A244990,
A261144,
A325691,
A344293,
A344295.
A344415
Numbers whose greatest prime index is half their sum of prime indices.
Original entry on oeis.org
4, 9, 12, 25, 30, 40, 49, 63, 70, 84, 112, 121, 154, 165, 169, 198, 220, 264, 273, 286, 289, 325, 351, 352, 361, 364, 390, 442, 468, 520, 529, 561, 595, 624, 646, 714, 741, 748, 765, 832, 841, 850, 874, 918, 931, 952, 961, 988, 1020, 1045, 1173, 1197, 1224
Offset: 1
The sequence of terms together with their prime indices begins:
4: {1,1} 198: {1,2,2,5}
9: {2,2} 220: {1,1,3,5}
12: {1,1,2} 264: {1,1,1,2,5}
25: {3,3} 273: {2,4,6}
30: {1,2,3} 286: {1,5,6}
40: {1,1,1,3} 289: {7,7}
49: {4,4} 325: {3,3,6}
63: {2,2,4} 351: {2,2,2,6}
70: {1,3,4} 352: {1,1,1,1,1,5}
84: {1,1,2,4} 361: {8,8}
112: {1,1,1,1,4} 364: {1,1,4,6}
121: {5,5} 390: {1,2,3,6}
154: {1,4,5} 442: {1,6,7}
165: {2,3,5} 468: {1,1,2,2,6}
169: {6,6} 520: {1,1,1,3,6}
The partitions with these Heinz numbers are counted by
A035363.
A001222 counts prime factors with multiplicity.
A301987 lists numbers whose sum of prime indices equals their product.
A334201 adds up all prime indices except the greatest.
Cf.
A000070,
A001414,
A209816,
A301988,
A316413,
A316428,
A320924,
A325037,
A325038,
A325044,
A330950,
A344293,
A344294,
A344297.
-
primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
Select[Range[100],Max[primeMS[#]]==Total[primeMS[#]]/2&]
A347454
Numbers whose multiset of prime indices has integer alternating product.
Original entry on oeis.org
1, 2, 3, 4, 5, 7, 8, 9, 11, 12, 13, 16, 17, 18, 19, 20, 23, 25, 27, 28, 29, 31, 32, 36, 37, 41, 42, 43, 44, 45, 47, 48, 49, 50, 52, 53, 59, 61, 63, 64, 67, 68, 71, 72, 73, 75, 76, 78, 79, 80, 81, 83, 89, 92, 97, 98, 99, 100, 101, 103, 107, 108, 109, 112, 113
Offset: 1
The terms and their prime indices begin:
1: {} 20: {1,1,3} 47: {15}
2: {1} 23: {9} 48: {1,1,1,1,2}
3: {2} 25: {3,3} 49: {4,4}
4: {1,1} 27: {2,2,2} 50: {1,3,3}
5: {3} 28: {1,1,4} 52: {1,1,6}
7: {4} 29: {10} 53: {16}
8: {1,1,1} 31: {11} 59: {17}
9: {2,2} 32: {1,1,1,1,1} 61: {18}
11: {5} 36: {1,1,2,2} 63: {2,2,4}
12: {1,1,2} 37: {12} 64: {1,1,1,1,1,1}
13: {6} 41: {13} 67: {19}
16: {1,1,1,1} 42: {1,2,4} 68: {1,1,7}
17: {7} 43: {14} 71: {20}
18: {1,2,2} 44: {1,1,5} 72: {1,1,1,2,2}
19: {8} 45: {2,2,3} 73: {21}
Allowing any alternating product >= 1 gives
A344609, multiplicative
A347456.
Factorizations of this type are counted by
A347437.
Allowing any alternating product <= 1 gives
A347450.
The version for reversed prime indices is
A347457, complement
A347455.
A316524 gives the alternating sum of prime indices (reverse:
A344616).
A335433 lists numbers whose prime indices are separable, complement
A335448.
A344606 counts alternating permutations of prime indices.
A347461 counts possible alternating products of partitions.
A347462 counts possible reverse-alternating products of partitions.
Cf.
A001105,
A001222,
A028982,
A119620,
A236913,
A316523,
A344653,
A346703,
A346704,
A347443,
A347439.
-
primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
altprod[q_]:=Product[q[[i]]^(-1)^(i-1),{i,Length[q]}];
Select[Range[100],IntegerQ[altprod[primeMS[#]]]&]
A344414
Heinz numbers of integer partitions whose sum is at most twice their greatest part.
Original entry on oeis.org
2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, 19, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 33, 34, 35, 37, 38, 39, 40, 41, 42, 43, 44, 46, 47, 49, 51, 52, 53, 55, 56, 57, 58, 59, 61, 62, 63, 65, 66, 67, 68, 69, 70, 71, 73, 74, 76, 77, 78, 79, 82, 83, 84, 85
Offset: 1
The sequence of terms together with their prime indices begins:
2: {1} 20: {1,1,3} 39: {2,6}
3: {2} 21: {2,4} 40: {1,1,1,3}
4: {1,1} 22: {1,5} 41: {13}
5: {3} 23: {9} 42: {1,2,4}
6: {1,2} 25: {3,3} 43: {14}
7: {4} 26: {1,6} 44: {1,1,5}
9: {2,2} 28: {1,1,4} 46: {1,9}
10: {1,3} 29: {10} 47: {15}
11: {5} 30: {1,2,3} 49: {4,4}
12: {1,1,2} 31: {11} 51: {2,7}
13: {6} 33: {2,5} 52: {1,1,6}
14: {1,4} 34: {1,7} 53: {16}
15: {2,3} 35: {3,4} 55: {3,5}
17: {7} 37: {12} 56: {1,1,1,4}
19: {8} 38: {1,8} 57: {2,8}
For example, 56 has prime indices {1,1,1,4} and 7 <= 2*4, so 56 is in the sequence. On the other hand, 224 has prime indices {1,1,1,1,1,4} and 9 > 2*4, so 224 is not in the sequence.
These partitions are counted by
A025065 but are different from palindromic partitions, which have Heinz numbers
A265640.
The opposite even-weight version appears to be
A320924, counted by
A209816.
The case of equality in the conjugate version is
A340387.
A001222 counts prime factors with multiplicity.
A301987 lists numbers whose sum of prime indices equals their product.
A334201 adds up all prime indices except the greatest.
Cf.
A001414,
A067538,
A301988,
A316413,
A316428,
A325037,
A325038,
A325044,
A330950,
A344294,
A344297.
-
primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
Select[Range[100],Max[primeMS[#]]>=Total[primeMS[#]]/2&]
Comments