OFFSET
1,1
COMMENTS
A prime index of n is a number m such that prime(m) divides n. The multiset of prime indices of n is row n of A112798.
FORMULA
EXAMPLE
The terms together with their prime indices begin:
10: {1,3}
30: {1,2,3}
39: {2,6}
90: {1,2,2,3}
98: {1,4,4}
99: {2,2,5}
100: {1,1,3,3}
115: {3,9}
259: {4,12}
270: {1,2,2,2,3}
273: {2,4,6}
300: {1,1,2,3,3}
The prime indices of 490 are {1,3,4,4}, with minimum 1, maximum 4, and mean 3, and 4-1 = 3, so 490 is in the sequence.
MATHEMATICA
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Select[Range[100], Max@@prix[#]-Min@@prix[#]==Mean[prix[#]]&]
PROG
(Python)
from itertools import count, islice
from sympy import primepi, factorint
def A362047_gen(startvalue=2): # generator of terms >= startvalue
return filter(lambda n:(primepi(max(f:=factorint(n)))-primepi(min(f)))*sum(f.values())==sum(primepi(i)*j for i, j in f.items()), count(max(startvalue, 2)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Apr 11 2023
STATUS
approved