made with Mathematica technology MathWorld

Composite Number
DOWNLOAD Mathematica Notebook

A composite number n 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, ... (Sloane's A002808), whose prime decompositions 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

The nth composite number can be generated using the Mathematica code

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

There are an infinite number of composite numbers.

The composite number problem asks if there exist positive integers m and n such that N=mn.

A composite number C can always be written as a product in at least two ways (since 1·C is always possible). Call these two products

 C=ab=cd,
(1)

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

 c=mn,
(2)

where m is the part of c which divides a, and n is the part of c which divides b. Then there are p and q such that

a=mp
(3)
b=nq.
(4)

Solving ab=cd for d gives

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

It then follows that

S=a^2+b^2+c^2+d^2
(6)
=m^2p^2+n^2q^2+m^2n^2+p^2q^2
(7)
=(m^2+q^2)(n^2+p^2).
(8)

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
(9)

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

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."




CITE THIS AS:

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

Wolfram Mathematica 7 FOR STUDENTS—as low as $44.95.