OFFSET
1,2
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. We define the MTF-transform as shifting a number's prime indices along a function; see the Mathematica program.
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..10000
EXAMPLE
MATHEMATICA
primeMS[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
mtf[f_][n_]:=Product[If[f[i]==0, 1, Prime[f[i]]], {i, primeMS[n]}];
Array[mtf[mtf[Prime]], 100]
PROG
(PARI) \\ here b(n) is A064988.
b(n)=my(f=factor(n)); prod(i=1, #f~, my([p, e]=f[i, ]); prime(p)^e);
a(n)=my(f=factor(n)); prod(i=1, #f~, my([p, e]=f[i, ]); prime(b(primepi(p)))^e); \\ Andrew Howroyd, Nov 17 2025
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
Gus Wiseman, Oct 24 2022
STATUS
approved
