OFFSET
1,4
COMMENTS
Omega(n) >= a(n) for n >= 1, where Omega(n) = the number of prime factors of n, counting multiplicity.
Positions of records are A000079. - David A. Corneth, May 05 2020
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
Carlos Rivera, Puzzle #201 The Arithmetic Function A(n), The Prime Puzzles and Problems Connection.
FORMULA
MATHEMATICA
a[n_] := Module[{pf}, pf = Transpose[FactorInteger[n]]; Length[pf[[1]]]*Min[pf[[2]]]]; Table[a[i] - Boole[i == 1], {i, 100}]
(* Second program: *)
Table[Length[#] Min[#] - Boole[n == 1] &@ FactorInteger[n][[All, -1]], {n, 100}] (* Michael De Vlieger, Jul 12 2017 *)
PROG
(Python)
from sympy import factorint
def a(n):
f=factorint(n)
l=[f[p] for p in f]
return 0 if n==1 else len(l)*min(l)
print([a(n) for n in range(1, 51)]) # Indranil Ghosh, Jul 13 2017
(PARI) a(n) = if(n == 1, 0, my(e = factor(n)[, 2]); vecmin(e) * #e); \\ Amiram Eldar, Sep 08 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Joseph L. Pe, Nov 10 2002
EXTENSIONS
a(1)=0 prepended by Antti Karttunen, Jul 12 2017
STATUS
approved