A348551 Heinz numbers of integer partitions whose mean is not an integer.
1, 6, 12, 14, 15, 18, 20, 24, 26, 33, 35, 36, 38, 40, 42, 44, 45, 48, 50, 51, 52, 54, 56, 58, 60, 63, 65, 66, 69, 70, 72, 74, 75, 76, 77, 80, 86, 92, 93, 95, 96, 102, 104, 106, 108, 112, 114, 117, 119, 120, 122, 123, 124, 126, 130, 132, 135, 136, 140, 141, 142
Offset: 1
Keywords
Examples
The terms and their prime indices begin: 1: {} 6: {1,2} 12: {1,1,2} 14: {1,4} 15: {2,3} 18: {1,2,2} 20: {1,1,3} 24: {1,1,1,2} 26: {1,6} 33: {2,5} 35: {3,4} 36: {1,1,2,2} 38: {1,8} 40: {1,1,1,3} 42: {1,2,4} 44: {1,1,5} 45: {2,2,3} 48: {1,1,1,1,2}
Crossrefs
Programs
-
Maple
q:= n-> (l-> nops(l)=0 or irem(add(i, i=l), nops(l))>0)(map (i-> numtheory[pi](i[1])$i[2], ifactors(n)[2])): select(q, [$1..142])[]; # Alois P. Heinz, Nov 19 2021
-
Mathematica
primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; Select[Range[100],!IntegerQ[Mean[primeMS[#]]]&]
Comments