The function \omega(n) is
additive and \Omega(n) is
completely additive. Little omega has the formula \omega(n)=\sum_{p\mid n} 1, where notation indicates that the sum is taken over all primes that divide , without multiplicity. For example, \omega(12)=\omega(2^2 3)=2. Big omega has the formulas \Omega(n) =\sum_{p^\alpha\mid n} 1 =\sum_{p^\alpha\parallel n}\alpha. The notation indicates that the sum is taken over all prime powers that divide , while indicates that the sum is taken over all prime powers that divide and such that is coprime to . For example, \Omega(12)=\Omega(2^2 3^1)=3. The omegas are related by the inequalities and , where is the
divisor-counting function. If , then is
squarefree and related to the
Möbius function by :\mu(n) = (-1)^{\omega(n)} = (-1)^{\Omega(n)}. If \omega(n) = 1 then n is a
prime power, and if \Omega(n)=1 then n is prime. An
asymptotic series for the
average order of \omega(n) is :\frac{1}{n} \sum\limits_{k = 1}^n \omega(k) \sim \log\log n + B_1 + \sum_{k \geq 1} \left(\sum_{j=0}^{k-1} \frac{\gamma_j}{j!} - 1\right) \frac{(k-1)!}{(\log n)^k}, where B_1 \approx 0.26149721 is the
Mertens constant and \gamma_j are the
Stieltjes constants. The function \omega(n) is related to divisor sums over the
Möbius function and the
divisor function, including: :\sum_{d\mid n} |\mu(d)| = 2^{\omega(n)} is the number of
unitary divisors. :\sum_{d\mid n} |\mu(d)| k^{\omega(d)} = (k+1)^{\omega(n)} :\sum_{r\mid n} 2^{\omega(r)} = d(n^2) :\sum_{r\mid n} 2^{\omega(r)} d\left(\frac{n}{r}\right) = d^2(n) :\sum_{d\mid n} (-1)^{\omega(d)} = \prod\limits_{p^{\alpha}||n} (1-\alpha) : \sum_{\stackrel{1\le k\le m}{(k,m)=1}} \gcd(k^2-1,m_1)\gcd(k^2-1,m_2) =\varphi(n)\sum_{\stackrel{d_1\mid m_1} {d_2\mid m_2}} \varphi(\gcd(d_1, d_2)) 2^{\omega(\operatorname{lcm}(d_1, d_2))},\ m_1, m_2 \text{ odd}, m = \operatorname{lcm}(m_1, m_2) :\sum_\stackrel{1\le k\le n}{\operatorname{gcd}(k,m)=1} \!\!\!\! 1 = n \frac {\varphi(m)}{m} + O \left ( 2^{\omega(m)} \right ) The
characteristic function of the
primes can be expressed by a
convolution with the
Möbius function: : \chi_{\mathbb{P}}(n) = (\mu \ast \omega)(n) = \sum_{d|n} \omega(d) \mu(n/d). A partition-related exact identity for \omega(n) is given by :\omega(n) = \log_2\left[\sum_{k=1}^n \sum_{j=1}^k \left(\sum_{d\mid k} \sum_{i=1}^d p(d-ji) \right) s_{n,k} \cdot |\mu(j)|\right], where p(n) is the
partition function, \mu(n) is the
Möbius function, and the triangular sequence s_{n,k} is expanded by :s_{n,k} = [q^n] (q; q)_\infty \frac{q^k}{1-q^k} = s_o(n, k) - s_e(n, k), in terms of the infinite
q-Pochhammer symbol and the restricted partition functions s_{o/e}(n, k) which respectively denote the number of k's in all partitions of n into an
odd (
even) number of distinct parts. ==Continuation to the complex plane==