Completely additive arithmetic function Created 2026-10-06 Updated 2026-10-14
A completely additive arithmetic function satisfies for all positive , equivalently . The total number of prime factors is an example.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 124 1 a Solution Created 2026-10-03 Updated 2026-10-14
An additive arithmetic function satisfies for coprime integers ; a completely additive arithmetic function satisfies this for all positive . In either case . The fundamental theorem of arithmetic gives , where means that the prime valuation of at is exactly .
Under the discrete uniform distribution on , the expectation of the indicator function of isThe formula remains valid when . Applying linearity of expectation to the finite prime power decomposition proves the required mean formula:
For the last assertion, write the excess prime-factor multiplicity directly as a sum of nonnegative indicator functions:Here is the prime omega function and is the total number of prime factors. The expectation is bounded independently of , sinceThus Markov inequality gives vanishing probability on every diverging scale:
Prime omega function Created 2026-09-28 Updated 2026-10-13
The prime omega function counts the distinct prime factors of a positive integer , so it is the cardinality of the prime support of an integer . For a prime factorization with distinct prime numbers and positive exponents,At there are no prime factors, so the empty sum gives . The total number of prime factors instead gives . [ref]
https://darijgrinberg.gitlab.io/floor.pdf. Darij Grinberg, MIT 18.781, Floor and arithmetic functions, Definition 2.1.2: distinct and repeated prime factors
For , the prime support of an integer is and . The comparison examples give , and . Raising an existing prime factor to a higher power does not affect the prime omega function: for a prime number and . Thus the prime omega function is a strongly additive arithmetic function, withThe reason is that coprime integers have disjoint prime supports of an integer. For arbitrary positive integers, their prime support of an integer combines by set union, and the shared prime factors are exactly those of the greatest common divisor. Counting this set union gives the more general identityFor , , both prime supports of an integer are and , so . In particular : the prime omega function is not a completely additive arithmetic function.
The prime omega function is useful for counting choices involving distinct prime factors. Every squarefree divisor of chooses a subset of its prime support of an integer, so there are squarefree divisors. For , this gives , namely . Also , because the radical of an integer keeps exactly that prime support of an integer. The total number of prime factors records what this count discards, and the two counts agree exactly on squarefree integers.
Total number of prime factors Created 2026-10-06 Updated 2026-10-13
The total number of prime factors counts every occurrence of a prime factor in the prime factorization of a positive integer . Equivalently, it adds the prime valuations:One may also write over all prime numbers, since only finitely many prime valuations are nonzero. The empty sum gives . By contrast, the prime omega function has and counts distinct prime factors. [ref]
https://darijgrinberg.gitlab.io/floor.pdf. Darij Grinberg, MIT 18.781, Floor and arithmetic functions, Definition 2.1.2: the two prime-factor counts
Expanding into shows , whereas and . The same calculation for the comparison examples givesThe total number of prime factors agrees for and , although their prime supports of an integer differ. Meanwhile and have the same radical of an integer and prime omega function, but different values of the total number of prime factors. These examples show exactly which information each arithmetic function forgets.
One box per prime factor occurrence: the total number of prime factors counts boxes, the prime omega function counts groups, and the radical of an integer multiplies one prime number from each group
. Details. The total number of prime factors is a completely additive arithmetic function:The proof is that multiplication adds each prime valuation, , and summing preserves that equality. No coprimality condition is needed. For example, and both have total number of prime factors three; their product has six. By comparison, the prime omega function is only an additive arithmetic function: here .
There is a useful way to see the total number of prime factors as a count of elementary building blocks: any expression of as a product of prime numbers has exactly factors, by the fundamental theorem of arithmetic. Equivalently, every factorization tree for has leaves. Repeated prime factors increase this count without introducing new kinds of prime number. The difference is the existing excess prime-factor multiplicity:Every summand is nonnegative, so if and only if is a squarefree integer, including . In particular, a prime power with has , and .
Historically, Hardy and Ramanujan's 1917 paper explicitly separated the prime omega function from the total number of prime factors, writing them as and , respectively. Their example has counts three and six. That distinction let them compare two measures of how an integer is built from prime factors. [ref]
https://ramanujan.sirinudi.org/Volumes/published/ram35.html. G. H. Hardy and S. Ramanujan, The normal number of prime factors of a number n, Quarterly Journal of Mathematics 48 (1917), 76–92, Section 1.2, transcribed original text
