OFFSET
1,2
LINKS
Jean-Marie De Koninck and William Verreault, Arithmetic functions at factorial arguments, Publications de l'Institut Mathematique, Vol. 115, No. 129 (2024), pp. 45-76.
FORMULA
From Amiram Eldar, Dec 10 2024: (Start)
a(n) = 2^(n-s_2(n)) + O(sqrt(3)^n)), where s_2(n) = A000120(n).
Sum_{k=1..n} a(k) = 2^(n+O(log(n))).
Both formulas from De Koninck and Verreault (2024, pp. 51-52, eq. (3.10) and (3.16)). (End)
EXAMPLE
a(1) = 0 since 1! = 1 has no prime factor.
a(8) = 2^7 + 3^2 + 5 + 7 = 149 since 8! = 2^7*3^2*5*7.
MATHEMATICA
ffi[x_] := Flatten[FactorInteger[x]]; lf[x_] := Length[FactorInteger[x]]; ba[x_] := Table[Part[ffi[x], 2*w-1], {w, 1, lf[x]}]; ep[x_] := Table[Part[ffi[x], 2*w], {w, 1, lf[x]}]; supo[x_] := Apply[Plus, ba[x]^ep[x]]; Table[supo[w], {w, 1, 25}]
PROG
(PARI) a(n) = my(f=factor(n!)); sum(k=1, #f~, f[k, 1]^f[k, 2]); \\ Michel Marcus, Jul 09 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Mar 31 2003
STATUS
approved