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.
A number is squarefree if it is not divisible by any perfect square > 1.
A number has consecutive prime factors if it is divisible by both prime(k) and prime(k+1) for some k.
LINKS
EXAMPLE
The terms together with their prime indices begin:
6: {1,2}
15: {2,3}
30: {1,2,3}
35: {3,4}
42: {1,2,4}
66: {1,2,5}
70: {1,3,4}
77: {4,5}
78: {1,2,6}
102: {1,2,7}
105: {2,3,4}
114: {1,2,8}
138: {1,2,9}
143: {5,6}
154: {1,4,5}
165: {2,3,5}
174: {1,2,10}
186: {1,2,11}
195: {2,3,6}
210: {1,2,3,4}
MATHEMATICA
primeMS[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Select[Range[100], Min@@Differences[primeMS[#]]==1&]
Select[Range[600], SquareFreeQ[#]&&AnyTrue[Partition[FactorInteger[#][[;; , 1]], 2, 1], NextPrime[#[[1]]]==#[[2]]&]&] (* Harvey P. Dale, Jan 19 2026 *)
CROSSREFS
Crossrefs found in the link are not repeated here.
For minimal difference <= 1 we have A055932.
For maximal instead of minimal difference = 1 we have A066312.
For minimal difference > 1 we have A325160.
If zero is considered a prime index we get A355530.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jul 10 2022
STATUS
approved
