This is a Wikipediauser page. This is not an encyclopedia article or the talk page for an encyclopedia article. If you find this page on any site other than Wikipedia, you are viewing a mirror site. Be aware that the page may be outdated and that the user whom this page is about may have no personal affiliation with any site other than Wikipedia. The original page is located at https://en.wikipedia.org/wiki/User:Thecmad.
Proof Consider the collection of subsets of that consists of all sets of the form , as well as of any (possibly trivial) union of such sets. Then, it is trivial to see that induces a topology on . Furthermore, observe that for all such , which implies that is closed, as the complement of a union of open sets.
Suppose, for the sake of contradiction, that there were finitely many primes in . Then would be closed, as a finite union of closed sets. However, , so its complement is not open, a contradiction. Consequently, there exist infinitely many primes.
Counting in two ways: an application to trigonometry
Proof Consider a sequence of unfair coins, each having probability , , of turning up heads when tossed. Denote by the event that, upon sequentially tossing the coins, a head eventually turns up; this can happen in one of countably many ways: a head comes up immediately, or a tail comes up first followed by a head, or two tails come up followed by a head, and so on. For a head to first come up on the -th toss, all previous tosses must have resulted in tails, which event happens with probability . Therefore, . We may, however, calculate with another method. For not to happen, each toss must result in a tail, for . The associated probability is . Since , the result follows.
Application This can be applied whenever we can construct a sequence whose range lies in the unit interval . One particularly interesting application is obtained by setting , for , thus establishing the trigonometric identity .
Counting in two ways: an application to number theory
Lemma If two positive integers are chosen at random, each number being equally likely to have been selected, then the probability that are coprime is
Proof Let us adopt the notion that is the set of positive integers. Recalling that denotes the greatest common divisor, we wish to show that .
First, we claim that , for any positive integer . Indeed, it is easy to see that . If , being uniformly distributed over , are both restricted to , then are uniformly distributed over , so the right factor equals , and thus: , and the claim follows.
Now, observe that , so , and the result follows.
Statement If denotes the sequence of primes in , then
Proof Due to the lemma, it suffices to show that , where are random variables uniformly distributed over . Let us find yet another (easier) way of computing . Two integers are coprime whenever they share no prime factors. Therefore, are coprime if, for every , are not both in , an event whose probability is . After multiplying the expressions for , since the events are independent, the result follows.
Isometric embeddings: an application to computational geometry
Lemma Consider the map defined as , with being the normal dot product in . Then for any two we have
Proof Indeed, observe that
In fact, equality is achieved for (in this case, we adopt the notion that ), and the lemma follows.
Statement Given points , it is possible to compute the points' Manhattan diameter, , in runtime that is linear in ; specifically, we can achieve a runtime of .