A347457 Heinz numbers of integer partitions with integer alternating product.
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 32, 34, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 52, 53, 54, 56, 57, 58, 59, 61, 62, 63, 64, 65, 67, 68, 71, 72, 73, 74, 75, 76, 78
Offset: 1
Keywords
Examples
The prime indices of 525 are {2,3,3,4}, with reverse-alternating product 2, so 525 is in the sequence The prime indices of 135 are {2,2,2,3}, with reverse-alternating product 3/2, so 135 is not in the sequence.
Crossrefs
Programs
-
Mathematica
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[Reverse[primeMS[#]]]]&]
Comments