Let $f(n)$ for $n\in\mathbb N$ be a function that increases the prime index of each prime factor of $n$ (with multiplicity) by $1$.
e.g. $f(20)=f(2^2\cdot 5)=f(p_1^2\cdot p_3)=p_{2}^2\cdot p_{4}=3^2\cdot 7=63$.
Let the set $S_n=\{n< s< 2n : f(s)\leq 2n\}$, for any $n\in\mathbb N$.
If you take the mean of $\frac{f(s)}{s}$ for each element $s \in S_n$, empirical results for $n \leq 10^8$ strongly suggest that this mean converges:
$$\lim_{n\to\infty} \left(\frac{1}{|S_n|}\sum_{s \in S_n} \frac{f(s)}{s}\right)=\frac{\log 2^{\pi}}{\log {2\pi}}\approx 1.18484.$$
$$$$
Can anyone explain why this should be so? My motivation in asking is as part of a larger study of the behavior of $f$, and this result seems too nice and tidy to ignore without investigation. If anyone can explain the origin of the RHS term, or show that it is not a limit after all, I'll consider this question answered.
As a rough picture of what empirical results I'm referring to, here's a plot of this mean as $n$ increases by a factor of $1.1$ each step to nearly $10^8$:
It appears convincingly centered around $\frac{\log{2^\pi}}{\log{2\pi}}$, which seems much more plausible than any other nearby constants I could find, and it's varying by around $10^{-6}$ at the tail end there.
Per request, Mathematica code to generate plot. This was quick 'n dirty and I'm certain it could be optimized to run much faster. Use Alt+. to halt execution.
ClearAll[f, dyn];
f[1] = 1;
f[n_, k_ : 1] := Times @@ (NextPrime[#1, k]^#2 &) @@@ FactorInteger@n;
SetAttributes[f, Listable];
SetAttributes[dyn, HoldAll];
dyn[expr_, symbols_List : {}, interval_ : [Infinity]] :=
PrintTemporary[
Dynamic[Refresh[expr, TrackedSymbols :> symbols,
UpdateInterval -> interval]]]
tab = {};
disp := Column[{Length@tab, n, ListLinePlot[Last/@tab, ImageSize -> Large],
Grid[Prepend[
Reverse@tab, {Style["n", Bold], Style["S mean", Bold]}],
Dividers -> All, Alignment -> {Left, Top}]}]
dyn[disp, {tab}];
n = 100;
While[True,
s = Select[f[Range[n + 3 - Mod[n, 2, 1], 2 n, 2], -1], # > n &];
m = Mean[N[f@#, 8]/# & /@ s];
AppendTo[tab, {n, m}];
n = Ceiling[1.1 n];
]
disp
