OFFSET
1,3
COMMENTS
See A319626 for the corresponding numerators and additional comments.
LINKS
Daniel Suteu, Table of n, a(n) for n = 1..10000
EXAMPLE
f(21/5) = (2*3) * (2*3*5*7) / (2*3*5) = 42, hence g(42) = 21/5 and a(42) = 5.
MATHEMATICA
Array[#2/GCD[#1, #2] & @@ {#, Apply[Times, Map[If[#1 <= 2, 1, NextPrime[#1, -1]]^#2 & @@ # &, FactorInteger[#]]]} &, 120] (* Michael De Vlieger, Aug 27 2020 *)
PROG
(PARI) a(n) = my (f=factor(n)); denominator(prod(i=1, #f~, my (p=f[i, 1]); (p/if (p>2, precprime(p-1), 1))^f[i, 2]))
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Sep 25 2018
EXTENSIONS
"Primorial deflation" prefixed to the name by Antti Karttunen, Apr 29 2022
STATUS
approved