OFFSET
1,2
COMMENTS
This is the same as A045966 except the first term is 1 instead of 3.
EXAMPLE
The terms together with their prime indices begin:
1: {}
5: {3}
7: {4}
25: {3,3}
11: {5}
35: {3,4}
13: {6}
125: {3,3,3}
49: {4,4}
55: {3,5}
17: {7}
175: {3,3,4}
19: {8}
65: {3,6}
77: {4,5}
625: {3,3,3,3}
MATHEMATICA
primeMS[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Table[Product[Prime[i+2], {i, primeMS[n]}], {n, 30}]
PROG
(PARI) a(n) = my(f=factor(n)); for (k=1, #f~, f[k, 1] = nextprime(nextprime(f[k, 1]+1)+1)); factorback(f); \\ Michel Marcus, Oct 28 2022
(Python)
from math import prod
from sympy import nextprime, factorint
def A357852(n): return prod(nextprime(p, ith=2)**e for p, e in factorint(n).items()) # Chai Wah Wu, Oct 29 2022
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
Gus Wiseman, Oct 28 2022
STATUS
approved