OFFSET
1,2
COMMENTS
FORMULA
a(n) = A379319(n)/2.
EXAMPLE
The prime indices of 75 are {2,3,3}, with product 18 and sum 8, and since 18 is a multiple of 8+1, 75 is in the sequence.
The terms together with their prime indices begin:
1: {}
15: {2,3}
42: {1,2,4}
54: {1,2,2,2}
75: {2,3,3}
77: {4,5}
95: {3,8}
99: {2,2,5}
100: {1,1,3,3}
132: {1,1,2,5}
182: {1,4,6}
195: {2,3,6}
221: {6,7}
234: {1,2,2,6}
245: {3,4,4}
MATHEMATICA
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Select[Range[100], Divisible[Times@@prix[#], 1+Total[prix[#]]]&]
PROG
(PARI) vpind(n)=my(v=List(), f=factor(n)); for(i=1, #f~, for(j=1, f[i, 2], listput(v, primepi(f[i, 1])))); Vec(v); \\ A112798
isok(k) = my(vind = vpind(k)); (vecprod(vind) % (vecsum(vind)+1)) == 0; \\ Michel Marcus, Jan 21 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jan 18 2025
STATUS
approved