OFFSET
1,3
COMMENTS
Also: minimal m such that n is the product of at most m primes not exceeding prime(m). (Here the primes do not need to be distinct; cf. A263323.)
By convention, a(1)=0, as 1 is the empty product.
Those n with a(n) <= k fill a k-simplex whose 1-sides span from 0 to k.
For a similar construction with distinct primes (hypercube), see A263323.
Each nonnegative integer occurs finitely often; in particular:
- Terms a(n) <= k occur A000984(k) = (2*k)!/(k!)^2 times.
- The term a(n) = 0 occurs exactly once.
LINKS
EXAMPLE
a(6)=2 because 6 is the product of 2 primes (2*3), each not exceeding prime(2)=3.
a(8)=3 because 8 is the product of 3 primes (2*2*2), each not exceeding prime(3)=5.
a(11)=5 because 11 is prime(5).
MAPLE
seq(`if`(n=1, 0, max(pi(max(factorset(n))), bigomega(n))), n=1..80); # Peter Luschny, Oct 15 2015
MATHEMATICA
f[n_] := Max[ PrimePi[ Max @@ First /@ FactorInteger@n], Plus @@ Last /@ FactorInteger@n]; Array[f, 80]
PROG
(PARI) a(n)=if(n<2, return(0)); my(f=factor(n)); max(vecsum(f[, 2]), primepi(f[#f~, 1])) \\ Charles R Greathouse IV, Oct 13 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Alexei Kourbatov, Oct 13 2015
STATUS
approved