A353393
Positive integers m > 1 that are prime or whose prime shadow A181819(m) is a divisor of m that is already in the sequence.
Original entry on oeis.org
2, 3, 5, 7, 9, 11, 13, 17, 19, 23, 29, 31, 36, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 125, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 225, 227, 229, 233, 239, 241, 251
Offset: 1
The terms together with their prime indices begin:
2: {1}
3: {2}
5: {3}
7: {4}
9: {2,2}
11: {5}
13: {6}
17: {7}
19: {8}
23: {9}
29: {10}
31: {11}
36: {1,1,2,2}
The first term that is not a prime power
A000961 is 36.
The first term that is not a prime or a perfect power
A001597 is 1260. - Corrected by
Robert Israel, Mar 10 2025
These partitions are counted by
A353426.
The version for compositions is
A353431.
A003963 gives product of prime indices.
A130091 lists numbers with all distinct prime exponents, counted by
A098859.
A325131 lists numbers relatively prime to their prime shadow.
-
pshadow:= proc(n) local F,i;
F:= ifactors(n)[2];
mul(ithprime(i),i=F[..,2])
end proc:
filter:= proc(n) local s;
if isprime(n) then return true fi;
s:= pshadow(n);
n mod s = 0 and member(s,R)
end proc:
R:= {}:
for i from 2 to 2000 do if filter(i) then R:= R union {i} fi od:
sort(convert(R,list)); # Robert Israel, Mar 10 2025
-
red[n_]:=If[n==1,1,Times@@Prime/@Last/@FactorInteger[n]];
suQ[n_]:=PrimeQ[n]||Divisible[n,red[n]]&&suQ[red[n]];
Select[Range[2,200],suQ[#]&]
A353390
Number of compositions of n whose own run-lengths are a subsequence (not necessarily consecutive).
Original entry on oeis.org
1, 1, 0, 0, 1, 2, 3, 2, 2, 8, 17, 26, 43, 77, 129, 210, 351, 569
Offset: 0
The a(0) = 1 through a(9) = 8 compositions (empty columns indicated by dots):
() (1) . . (22) (122) (1122) (11221) (21122) (333)
(221) (1221) (12211) (22112) (22113)
(2211) (22122)
(31122)
(121122)
(122112)
(211221)
(221121)
For example, the composition y = (2,2,3,3,1) has run-lengths (2,2,1), which form a (non-consecutive) subsequence, so y is counted under a(11).
The version for partitions is
A325702.
These compositions are ranked by
A353402.
The recursive consecutive version is
A353430.
A325705 counts partitions containing all of their distinct multiplicities.
A329739 counts compositions with all distinct run-lengths, for runs
A351013.
A353400 counts compositions with all run-lengths > 2.
Cf.
A005811,
A103295,
A114901,
A181591,
A238279,
A242882,
A324572,
A333755,
A351017,
A353401,
A353426.
-
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], MemberQ[Subsets[#],Length/@Split[#]]&]],{n,0,15}]
A353391
Number of compositions of n that are empty, a singleton, or whose run-lengths are a subsequence that is already counted.
Original entry on oeis.org
1, 1, 1, 1, 2, 1, 3, 1, 1, 4, 5, 7, 9, 11, 15, 22, 38, 45, 87, 93
Offset: 0
The a(9) = 4 through a(14) = 15 compositions (A..E = 10..14):
(9) (A) (B) (C) (D) (E)
(333) (2233) (141122) (2244) (161122) (2255)
(121122) (3322) (221123) (4422) (221125) (5522)
(221121) (131122) (221132) (151122) (221134) (171122)
(221131) (221141) (221124) (221143) (221126)
(231122) (221142) (221152) (221135)
(321122) (221151) (221161) (221153)
(241122) (251122) (221162)
(421122) (341122) (221171)
(431122) (261122)
(521122) (351122)
(531122)
(621122)
(122121122)
(221121221)
The non-recursive reverse version is
A353403.
The consecutive version is
A353430.
These compositions are ranked by
A353431.
A114901 counts compositions with no runs of length 1.
A325705 counts partitions containing all of their distinct multiplicities.
A329739 counts compositions with all distinct run-length.
Cf.
A005811,
A032020,
A103295,
A114640,
A165413,
A181591,
A242882,
A324572,
A325702,
A333755,
A351013,
A353401.
-
yosQ[y_]:=Length[y]<=1||MemberQ[Subsets[y],Length/@Split[y]]&&yosQ[Length/@Split[y]];
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],yosQ]],{n,0,15}]
A353402
Numbers k such that the k-th composition in standard order has its own run-lengths as a subsequence (not necessarily consecutive).
Original entry on oeis.org
0, 1, 10, 21, 26, 43, 53, 58, 107, 117, 174, 186, 292, 314, 346, 348, 349, 373, 430, 442, 570, 585, 586, 629, 676, 693, 696, 697, 698, 699, 804, 826, 858, 860, 861, 885, 954, 1082, 1141, 1173, 1210, 1338, 1353, 1387, 1392, 1393, 1394, 1396, 1397, 1398, 1466
Offset: 0
The initial terms, their binary expansions, and the corresponding standard compositions:
0: 0 ()
1: 1 (1)
10: 1010 (2,2)
21: 10101 (2,2,1)
26: 11010 (1,2,2)
43: 101011 (2,2,1,1)
53: 110101 (1,2,2,1)
58: 111010 (1,1,2,2)
107: 1101011 (1,2,2,1,1)
117: 1110101 (1,1,2,2,1)
174: 10101110 (2,2,1,1,2)
186: 10111010 (2,1,1,2,2)
292: 100100100 (3,3,3)
314: 100111010 (3,1,1,2,2)
346: 101011010 (2,2,1,2,2)
348: 101011100 (2,2,1,1,3)
349: 101011101 (2,2,1,1,2,1)
373: 101110101 (2,1,1,2,2,1)
430: 110101110 (1,2,2,1,1,2)
442: 110111010 (1,2,1,1,2,2)
These compositions are counted by
A353390.
A005811 counts runs in binary expansion.
A333769 lists run-lengths of compositions in standard order.
Statistics of standard compositions:
Classes of standard compositions:
Cf.
A114640,
A165413,
A181819,
A318928,
A325705,
A329738,
A333224/
A333257,
A333755,
A353393,
A353403,
A353430.
-
stc[n_]:=Differences[Prepend[Join@@Position[ Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
rosQ[y_]:=Length[y]==0||MemberQ[Subsets[y],Length/@Split[y]];
Select[Range[0,100],rosQ[stc[#]]&]
A353392
Number of compositions of n whose own run-lengths are a consecutive subsequence.
Original entry on oeis.org
1, 1, 0, 0, 1, 2, 2, 2, 2, 8, 12, 16, 20, 35, 46, 59, 81, 109, 144, 202, 282
Offset: 0
The a(0) = 0 through a(10) = 12 compositions (empty columns indicated by dots, 0 is the empty composition):
0 1 . . 22 122 1122 11221 21122 333 1333
221 2211 12211 22112 22113 2233
22122 3322
31122 3331
121122 22114
122112 41122
211221 122113
221121 131122
221131
311221
1211221
1221121
The non-consecutive version for partitions is
A325702.
The non-consecutive reverse version is
A353403.
These compositions are ranked by
A353432.
A329739 counts compositions with all distinct run-lengths.
Cf.
A008965,
A032020,
A103295,
A103300,
A114901,
A238279,
A324572,
A325705,
A333224,
A333755,
A351013,
A353401.
-
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],#=={}||MemberQ[Join@@Table[Take[#,{i,j}],{i,Length[#]},{j,i,Length[#]}],Length/@Split[#]]&]],{n,0,15}]
A353403
Number of compositions of n whose own reversed run-lengths are a subsequence (not necessarily consecutive).
Original entry on oeis.org
1, 1, 0, 0, 3, 2, 5, 12, 16, 30, 45, 94, 159, 285, 477, 864, 1487, 2643
Offset: 0
The a(0) = 1 through a(7) = 12 compositions:
() (1) . . (22) (1121) (1113) (1123)
(112) (1211) (1122) (1132)
(211) (1221) (2311)
(2211) (3211)
(3111) (11131)
(11212)
(11221)
(12112)
(12211)
(13111)
(21121)
(21211)
The non-reversed recursive consecutive version is
A353430.
A325705 counts partitions containing all of their distinct multiplicities.
A329739 counts compositions with all distinct run-lengths, for runs
A351013.
-
Table[Length[Select[Join@@Permutations/@ IntegerPartitions[n],MemberQ[Subsets[#],Reverse[Length/@Split[#]]]&]],{n,0,15}]
A353432
Numbers k such that the k-th composition in standard order has its own run-lengths as a consecutive subsequence.
Original entry on oeis.org
0, 1, 10, 21, 26, 43, 58, 107, 117, 174, 186, 292, 314, 346, 348, 349, 373, 430, 442, 570, 585, 586, 629, 676, 696, 697, 804, 826, 860, 861, 885, 1082, 1141, 1173, 1210, 1338, 1387, 1392, 1393, 1394, 1396, 1594, 1653, 1700, 1720, 1721, 1882, 2106, 2165, 2186
Offset: 1
The initial terms, their binary expansions, and the corresponding standard compositions:
0: 0 ()
1: 1 (1)
10: 1010 (2,2)
21: 10101 (2,2,1)
26: 11010 (1,2,2)
43: 101011 (2,2,1,1)
58: 111010 (1,1,2,2)
107: 1101011 (1,2,2,1,1)
117: 1110101 (1,1,2,2,1)
174: 10101110 (2,2,1,1,2)
186: 10111010 (2,1,1,2,2)
292: 100100100 (3,3,3)
314: 100111010 (3,1,1,2,2)
346: 101011010 (2,2,1,2,2)
348: 101011100 (2,2,1,1,3)
349: 101011101 (2,2,1,1,2,1)
373: 101110101 (2,1,1,2,2,1)
430: 110101110 (1,2,2,1,1,2)
442: 110111010 (1,2,1,1,2,2)
These compositions are counted by
A353392.
A005811 counts runs in binary expansion.
Statistics of standard compositions:
Classes of standard compositions:
Cf.
A044813,
A165413,
A181819,
A318928,
A325702,
A325705,
A325755,
A333224,
A333755,
A353389,
A353393,
A353403.
-
stc[n_]:=Differences[Prepend[Join@@ Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
rorQ[y_]:=Length[y]==0||MemberQ[Join@@Table[Take[y,{i,j}],{i,Length[y]},{j,i,Length[y]}],Length/@Split[y]];
Select[Range[0,10000],rorQ[stc[#]]&]
A353430
Number of integer compositions of n that are empty, a singleton, or whose own run-lengths are a consecutive subsequence that is already counted.
Original entry on oeis.org
1, 1, 1, 1, 2, 1, 3, 1, 1, 4, 5, 7, 9, 11, 15, 16, 22, 25, 37, 37, 45
Offset: 0
The a(n) compositions for selected n (A..E = 10..14):
n=4: n=6: n=9: n=10: n=12: n=14:
-----------------------------------------------------------
(4) (6) (9) (A) (C) (E)
(22) (1122) (333) (2233) (2244) (2255)
(2211) (121122) (3322) (4422) (5522)
(221121) (131122) (151122) (171122)
(221131) (221124) (221126)
(221142) (221135)
(221151) (221153)
(241122) (221162)
(421122) (221171)
(261122)
(351122)
(531122)
(621122)
(122121122)
(221121221)
A114901 counts compositions with no runs of length 1.
A329739 counts compositions with all distinct run-lengths.
Cf.
A005811,
A032020,
A103295,
A114640,
A165413,
A242882,
A325705,
A333755,
A351013,
A353400,
A353401.
-
yoyQ[y_]:=Length[y]<=1||MemberQ[Join@@Table[Take[y,{i,j}],{i,Length[y]},{j,i,Length[y]}],Length/@Split[y]]&&yoyQ[Length/@Split[y]];
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],yoyQ]],{n,0,15}]
A353696
Numbers k such that the k-th composition in standard order (A066099) is empty, a singleton, or has run-lengths that are a consecutive subsequence that is already counted.
Original entry on oeis.org
0, 1, 2, 4, 8, 10, 16, 32, 43, 58, 64, 128, 256, 292, 349, 442, 512, 586, 676, 697, 826, 1024, 1210, 1338, 1393, 1394, 1396, 1594, 2048, 2186, 2234, 2618, 2696, 2785, 2786, 2792, 3130, 4096, 4282, 4410, 4666, 5178, 5569, 5570, 5572, 5576, 5584, 6202, 8192
Offset: 1
The terms together with their corresponding compositions begin:
0: ()
1: (1)
2: (2)
4: (3)
8: (4)
10: (2,2)
16: (5)
32: (6)
43: (2,2,1,1)
58: (1,1,2,2)
64: (7)
128: (8)
256: (9)
292: (3,3,3)
349: (2,2,1,1,2,1)
442: (1,2,1,1,2,2)
512: (10)
586: (3,3,2,2)
676: (2,2,3,3)
697: (2,2,1,1,3,1)
826: (1,3,1,1,2,2)
Non-recursive non-consecutive for partitions:
A325755, counted by
A325702.
A005811 counts runs in binary expansion.
Statistics of standard compositions:
Classes of standard compositions:
Cf.
A032020,
A114640,
A181819,
A228351,
A329739,
A318928,
A325705,
A329738,
A333224,
A353427,
A353403.
-
stc[n_]:=Differences[Prepend[Join@@ Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
yoyQ[y_]:=Length[y]<=1||MemberQ[Join@@Table[Take[y,{i,j}],{i,Length[y]},{j,i,Length[y]}],Length/@Split[y]]&&yoyQ[Length/@Split[y]];
Select[Range[0,1000],yoyQ[stc[#]]&]
Showing 1-9 of 9 results.
Comments