Consider the odd primes 3, 5, 7, 11, 13, 17, 19, etc. Let S be the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider the odd primes 3, 5, 7, 11, 13, 17, 19, etc. Let S be the odd primes congruent to 1 mod 4 and T be the odd primes congruent to 3 mod 4. So S=5, 13, 17, 29, etc. and T = 3, 7, 11, 19, 23, etc. - Suppose we go through the odd primes in order counting the number of primes in S and T. So at the first step S = { } and T = {3} so T has more primes than S. At the second step S = {5} and T = {3} so S and T have the same number of primes. At the third step S = {5} and T = {3,7} so T has more primes than S again. Here is a little table counting the size of S and T for the first 10 primes Prime 3 |0 1 |S| ||T| 5 1 1 7 1 2 11 1 3 13 2 3 17 3 3 19 3 4 23 3 5 29 4 5 31 4 6 Notice that |T|≥ |S| for the first 10 primes. Does it ever happen that |S|≥|T| ? Yes, it does. When? How often? Using the builtin nextprime command write a loop that counts |S| and |T| for primes up to 10^6 and prints out the the first time |S| >|T| and, at the end, how often |S| >|T|. Consider the odd primes 3, 5, 7, 11, 13, 17, 19, etc. Let S be the odd primes congruent to 1 mod 4 and T be the odd primes congruent to 3 mod 4. So S=5, 13, 17, 29, etc. and T = 3, 7, 11, 19, 23, etc. - Suppose we go through the odd primes in order counting the number of primes in S and T. So at the first step S = { } and T = {3} so T has more primes than S. At the second step S = {5} and T = {3} so S and T have the same number of primes. At the third step S = {5} and T = {3,7} so T has more primes than S again. Here is a little table counting the size of S and T for the first 10 primes Prime 3 |0 1 |S| ||T| 5 1 1 7 1 2 11 1 3 13 2 3 17 3 3 19 3 4 23 3 5 29 4 5 31 4 6 Notice that |T|≥ |S| for the first 10 primes. Does it ever happen that |S|≥|T| ? Yes, it does. When? How often? Using the builtin nextprime command write a loop that counts |S| and |T| for primes up to 10^6 and prints out the the first time |S| >|T| and, at the end, how often |S| >|T|.
Expert Answer:
Answer rating: 100% (QA)
Notice that T S for the first 10 pr imes Does it ever happen that S T Yes it does When How often ANS ... View the full answer
Related Book For
Discrete and Combinatorial Mathematics An Applied Introduction
ISBN: 978-0201726343
5th edition
Authors: Ralph P. Grimaldi
Posted Date:
Students also viewed these accounting questions
-
Given the initial rate data below, what is the rate law and rate constant for the reaction of iron (II) ion plus oxygen gas plus hydrogen ion produces iron (III) ion plus water? Please show all work....
-
Let n N Prove that if n not congruent 1 mod 6 and n not congruent 5 mod 6 then n 2 or n 3 or n is not prime
-
Suppose t is an odd function and let h = f o g. Is h always an odd function? What if f is odd? What if is f even?
-
The species-area curve tells us that slowing or halting___________ ___________ will potentially slow the rate of extinction.
-
Graph the NPV profiles for both projects on a common chart, making sure that you identify all of the crucial points. Project A Project B Time Cashflow Cashflow 0 0 8 $725 $100$200 $250$200 $250 $200...
-
Allison Company has always provided its customers with payment terms of 1/10, n/30. Members of its sale force have commented that competitors are offering customers 2/10, n/45. Explain what these...
-
If a well-behaved investment alternative's internal rate of return (IRR) is equal to MARR, which of the following statements about the other measures of worth for this alternative must be true? 1....
-
Dorsey Company manufactures three products from a common input in a joint processing operation. Joint processing costs up to the split-off point total $350,000 per quarter. The company allocates...
-
Keeley and Roy are concerned about their financial future and meeting their goals. They are 38 years old with twin girls, Abigail and Laryssa age 8. Keeley is a public relations account executive...
-
The proposed rates were not in the range the CEO expected given the pricing analysis. The CEO has asked the pricing actuary to verify the total projected loss cost excluding potential large storm...
-
A financial analyst forecasts two equally likely scenarios for the economic state in the next month: Economic state Return of stock B 16% Boom Normal How much is the standard deviation of the returns...
-
Identify the disciplines that contribute to organizational behaviour and assess the signifcance of psychology as a contributory discipline.
-
What is meant by an assessment centre?
-
Outline the models of intelligence, and identify a particular model that appeals to you, giving reasons for your choice.
-
Suppose your employer offers you a choice between a $5700 bonus and 120 shares of the company stock. Whichever one you choose will be awarded today. The stock is currently trading for $58 per share....
-
You have just taken out a five-year loan from a bank to buy an engagement ring. The ring costs $6000. You plan to put down $2000 and borrow $4000. You will need to make annual payments of $1250 at...
-
Ozzy and Sharon are married and filed a joint federal return. Their daughter, Amy, is 10 years old and had total investment income of $3,700 during the tax year. Her investment income is 100% taxable...
-
When is the indirect pattern appropriate, and what are the benefits of using it?
-
How many derangements are there for 1, 2, 3, 4, 5?
-
The following provides an outline for proving Corollary 8.2. Fill in the needed details. (a) What is Et-1, and how are Lt and Lt-1 related? (b) Show that (c) For all 1 ¤ m ¤ t - 1, how...
-
(a) Consider the graph K2,3 shown in Fig. 11.91, and let Z+ denote the number of colors available to properly color the vertices of K2,3. (i) How many proper colorings of K2,3 have vertices a, b...
-
Describe how competence, caring, and character affect your credibility as a communicator.
-
Explain the importance of establishing credibility for business communications.
-
Define and explain business ethics, corporate values, and personal values.
Study smarter with the SolutionInn App