OFFSET
1,2
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
The sequence of terms together with their prime indices begins:
1: {} 37: {12} 75: {2,3,3}
3: {2} 39: {2,6} 76: {1,1,8}
7: {4} 43: {14} 79: {22}
9: {2,2} 46: {1,9} 81: {2,2,2,2}
10: {1,3} 49: {4,4} 82: {1,13}
13: {6} 52: {1,1,6} 84: {1,1,2,4}
19: {8} 53: {16} 85: {3,7}
21: {2,4} 55: {3,5} 87: {2,10}
22: {1,5} 57: {2,8} 88: {1,1,1,5}
25: {3,3} 61: {18} 89: {24}
27: {2,2,2} 62: {1,11} 90: {1,2,2,3}
28: {1,1,4} 63: {2,2,4} 91: {4,6}
29: {10} 66: {1,2,5} 94: {1,15}
30: {1,2,3} 70: {1,3,4} 100: {1,1,3,3}
34: {1,7} 71: {20} 101: {26}
For example, 75 has 3 prime indices {2,3,3} with sum 8 >= 2*3, so 75 is in the sequence.
MAPLE
filter:= proc(n) local F, a, t;
F:= ifactors(n)[2];
a:= add((numtheory:-pi(t[1])-2)*t[2], t=F);
a::even and a >= 0
end proc:
select(filter, [$1..300]); # Robert Israel, Oct 10 2024
MATHEMATICA
primeMS[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Select[Range[100], EvenQ[Total[primeMS[#]]]&&PrimeOmega[#]<=Total[primeMS[#]]/2&]
CROSSREFS
A subset of A300061 (sum of prime indices is even).
The case of equality is A340387.
Allowing odd weights gives A344291.
The opposite version allowing odd weights is A344296.
The conjugate opposite version allowing odd weights is A344414.
The case of equality in the conjugate case is A344415.
A001222 counts prime factors with multiplicity.
A301987 lists numbers whose sum of prime indices equals their product.
A330950 counts partitions of n with Heinz number divisible by n.
A334201 adds up all prime indices except the greatest.
KEYWORD
nonn
AUTHOR
Gus Wiseman, May 19 2021
STATUS
approved
