TOPICS
Search

Composite Number


A composite number is a positive integer n>1 which is not prime (i.e., which has factors other than 1 and itself). The first few composite numbers (sometimes called "composites" for short) are 4, 6, 8, 9, 10, 12, 14, 15, 16, ... (OEIS A002808), whose prime factorizations are summarized in the following table. Note that the number 1 is a special case which is considered to be neither composite nor prime.

nprime factorizationnprime factorization
42^2202^25
62·3213·7
82^3222·11
93^2242^3·3
102·5255^2
122^23262·13
142·7273^3
153·5282^27
162^4302·3·5
182·3^2322^5

For n>=1, the nth composite number c_n can be generated using the Wolfram Language code

Composite[n_Integer] /; n >= 1 :=
 FixedPoint[n + PrimePi[#] + 1&, n]

The Dirichlet generating function of the characteristic function of the composite numbers c_n is given for Re(s)>1 by

sum_(n=1)^(infty)([n in {c_k}_(k=1)^infty])/(n^s)=sum_(n=1)^(infty)1/(c_n^s)
(1)
=1/(4^s)+1/(6^s)+1/(8^s)+1/(9^s)+...
(2)
=zeta(s)-1-P(s),
(3)

where zeta(s) is the Riemann zeta function, P(s) is the prime zeta function, and [S] is an Iverson bracket.

There are an infinite number of composite numbers.

The composite number problem asks whether a given positive integer N can be written as N=mn with integers m>1 and n>1.

A composite number C can always be written as a product in at least two ways (since 1·C is always possible). For positive integers a, b, c, and d, call these two products

 C=ab=cd,
(4)

then it is obviously the case that c|ab (c divides ab). Set

 c=mn,
(5)

where m=gcd(a,c) is the greatest common divisor of a and c, and n=c/m. Writing p=a/m, the integers p and n are relatively prime, so n divides b. Put q=b/n. Then

a=mp
(6)
b=nq.
(7)

Solving ab=cd for d gives

 d=(ab)/c=((mp)(nq))/(mn)=pq.
(8)

It then follows that

S=a^2+b^2+c^2+d^2
(9)
=m^2p^2+n^2q^2+m^2n^2+p^2q^2
(10)
=(m^2+q^2)(n^2+p^2).
(11)

It therefore follows that a^2+b^2+c^2+d^2 is never prime! In fact, the more general result that

 S=a^k+b^k+c^k+d^k=(m^k+q^k)(n^k+p^k)
(12)

is never prime for k an integer >=0 also holds (Honsberger 1991).


See also

Amenable Number, Composite Number Problem, Grimm's Conjecture, Highly Composite Number, Prime Factorization, Prime Gaps, Prime Number, Weakly Prime

Explore with Wolfram|Alpha

References

Honsberger, R. More Mathematical Morsels. Washington, DC: Math. Assoc. Amer., pp. 19-20, 1991.Sloane, N. J. A. Sequence A002808/M3272 in "The On-Line Encyclopedia of Integer Sequences."

Referenced on Wolfram|Alpha

Composite Number

Cite this as:

Weisstein, Eric W. "Composite Number." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/CompositeNumber.html

Subject classifications