FACTOID # 156: Tax makes up half of the of Gross Domestic Product in Denmark and Sweden. In Japan and the United States, it makes up less than 30%.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

FACTS & STATISTICS    Simple view

  1. Select countries to view: (hold down Control key and click to select several)

     

     

    Compare:

     

     

  1. Select fact or statistic: (* = graphable)

     

     

     

  2. (OPTIONAL) Compare to statistic: (both need to be graphable)

     

     

     

  3. View result as:

     

       
(OR) SEARCH ALL encyclopedia, stats & forums:   

Encyclopedia > Legendre sieve

In mathematics, the Legendre sieve is the simplest method in modern sieve theory. It applies the concept of the Sieve of Eratosthenes to find upper or lower bounds on the number of primes within a given set of integers. Because it is a simple extension of Eratosthenes' idea, it is sometimes called the Legendre-Eratosthenes sieve. For other meanings of mathematics or math, see mathematics (disambiguation). ... Sieve theory is a set of general techniques in number theory, designed to count, or more realistically to estimate the size of, sifted sets of integers. ... In mathematics, the Sieve of Eratosthenes is a simple, ancient algorithm for finding all prime numbers up to a specified integer. ... In mathematics, especially in order theory, an upper bound of a subset S of some partially ordered set is an element which is greater than or equal to every element of S. The term lower bound is defined dually. ... In mathematics, a prime number (or a prime) is a natural number that has exactly two (distinct) natural number divisors, which are 1 and the prime number itself. ...

[edit]

Legendre's identity

The central idea of the method is expressed by the following identity, sometimes called the Legendre identity:

S(A,P)= sum_{ain A}sum_{d|a;d|P} mu(d) =sum_{d|P}mu(d)|A_d|

where A is a set of integers, P is a product of distinct primes, μ is the Möbius function, and Ad is the set of integers in A divisible by d, and S(A, P) is defined to be: The classical Möbius function is an important multiplicative function in number theory and combinatorics. ...

S(A, P) = |{n: n in A, (n, P) = 1}|

i.e. S(A,P) is the count of numbers in A with no factors common with P.


Note that in the most typical case, A is all integers less than or equal to some real number X, P is the product of all primes less than or equal to some integer z < X, and then the Legendre identity becomes:

S(A,P) =sum_{d|P}mu(d)leftlfloorfrac{X}{p_1}rightrfloor
=[X] - sum_{p_1 < z} leftlfloorfrac{X}{p_1}rightrfloor + sum_{p_1 < p_2 < z} leftlfloorfrac{X}{p_1p_2}rightrfloor - sum_{p_1 < p_2 < p_3 < z} leftlfloorfrac{X}{p_1p_2p_3}rightrfloor + cdots

(where lfloor X rfloor denotes the floor function). In this example the fact that the Legendre identity is derived from the Sieve of Eratosthenes is clear: the first term is the number of integers below X, the second term removes the multiples of all primes, the third term adds back the multiples of two primes (which were miscounted by being "crossed out twice"), and so on until all 2π(z) (where π(z) denotes the number of primes below z) combinations of primes have been covered. The floor and fractional part functions In mathematics, the floor function of a real number x, denoted or floor(x), is the largest integer less than or equal to x (formally, ). For example, floor(2. ...


Once S(A,P) has been calculated for this special case, it can be used to bound π(X) using the expression

S(A,P) geq pi(X) - pi(z) + 1

which follows immediately from the definition of S(A,P).

[edit]

Problems

Unfortunately, the Legendre sieve has a problem with fractional parts of terms accumulating into a large error, which means the sieve only gives very weak bounds in most cases. For this reason it is almost never used in practice, having been superseded by other techniques such as the Brun sieve and Selberg sieve. However, since these more powerful sieves are extensions of the basic ideas of the Legendre sieve, it is useful to first understand how this sieve works.


  Results from FactBites:
 
Legendre sieve - Encyclopedia, History, Geography and Biography (370 words)
In mathematics, the Legendre sieve is the simplest method in modern sieve theory.
It applies the concept of the Sieve of Eratosthenes to find upper or lower bounds on the number of primes within a given set of integers.
Unfortunately, the Legendre sieve has a problem with fractional parts of terms accumulating into a large error, which means the sieve only gives very weak bounds in most cases.
Sieve theory - Wikipedia, the free encyclopedia (599 words)
Sieve theory is a set of general techniques in number theory, designed to count, or more realistically to estimate the size of, sifted sets of integers.
One of the original purposes of sieve theory was to try to prove conjectures in number theory such as the twin prime conjecture.
Sieve theory is somewhat related to sieve algorithms such as the general number field sieve, used for factoring large numbers, although sieve theory and sieve algorithms serve different purposes.
  More results at FactBites »


 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments
Please enter the 5-letter protection code

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.