Write the integer as a product of powers of primes

Assignment Help Mathematics
Reference no: EM13902408

1) The following function written in pseudocode accepts INCOME as a variable and outputs the TAX corresponding to that income.

FUNCTION TAX (INCOME)

1. IF (INCOME > 60000) THEN

a. TAXDUE ← 15000

2. ELSE

a. IF (INCOME > 30000) THEN

1. TAXDUE ← 5000

b. ELSE

1. TAXDUE ← INCOME × 0.08

3. RETURN (TAXDUE)

What would the pseudocode output with an input of:

a) 23000?

b) 64000?

c) 47000?

2) Suppose that the array X consists of real numbers X[1], X[2], the array Y consists of the real numbers Y[1], Y[2], and the array Z consists of the real numbers Z[1], Z[2]. What does the following algorithm compute?

1. LSUM ← 0

2. FOR I = 1 THRU 2

a. LSUM ← LSUM + (X[I])(Y[I])(Z[I])

This problem is similar to problem A.5.

3) Consider the following algorithm; assume N to be a positive integer.

1. X ← 0

2. Y ← 0

3. WHILE (X < N)
a. X ← X+2
b. Y ← Y+X
4. Y ← Y/N

What will this algorithm compute when N = 2? N = 5? This problem is similar to example 7.

Section 1.4 Homework

1) Write m as qn+r, with 0 < r < n for parts a) through c).

a) m = 75, n = 13

b) m = 13, n = 75

c) m = 44, n = 11

2) Write the integer as a product of powers of primes.

a) 179

b) 244

3) Find the greatest common divisor d of the integers 58 and 124, and write d as s(58) + t(124). Write out all of the steps. This problem is similar to examples 5 and 6 and problems 1.4.6-1.4.9.

4) Use the fact that GCD(a,b)•LCM(a,b)=ab to compute the least common multiple of 58 and 124, LCM(58,124). This problem is similar to problems 1.4.10-1.4.13.

5) If f is the mod-5 function, compute each of the following:

a) f(13) + f(19)

b) f(13+19)

c) f(278)

6) Use Bacon's code to create a dummy message for ABANDON. For the sake of simplicity, use bold font for 0 and regular font for 1. This problem is similar to examples 15 and 16 and problem 1.4.45.

1) Prove that 3+6+9+?+3n = (3n(n+1))/2

Here is a general outline you can use.

1. Basis step. Prove P(1)

2. Induction step.

a. Write out P(k) by replacing "n" with "k" in the original equation.

b. Now, we must look at P(k+1). To do this, modify your P(k) expression from part 2a by adding the "k+1"st term to the left hand side and replace "k" with "k+1" on the right hand side. This is what we need to show.

c.Using the assumption that P(k) is true, replace the "1 through k" portion on the left hand side of the P(k+1) equation you wrote in part 2b.

d. If necessary, multiply away any constant denominators in the new P(k+1) formulation.

e. Multiply out the left-hand side and the right-hand side to establish the equality.

Reference no: EM13902408

Questions Cloud

What is marketings most important role : What is marketing's most important role? Create value for consumers. Bring needed products and services to consumer groups.
Producer of bandages and arm slings : Susan Williams has been the production manager of Medical Supplies, Inc. for the past 17 years. Medical Supplies Inc. is a producer of bandages and arm slings. During the past 5 y ears, the demand for No-Stick bandages has been fairly constant.
What difference between ordinal utility and cardinal utility : What is the difference between ordinal utility and cardinal utility? Explain why the assumption of car- dinal utility is not needed in order to rank consumer choices.
Analysis of the bunnatine greenhouse case : Analysis of the Bunnatine Greenhouse case via http://www.whistleblowers.org. Your analysis should: Provide a detailed synopsis and Identify and discuss the major issues
Write the integer as a product of powers of primes : Write the integer as a product of powers of primes and what would the pseudocode output with an input.
Identify three accounting factors that will drive a firm : Identify three accounting factors that will drive a firm's price-earnings ratio in a given period to be higher than that of other firms in the same industry.
What happens to the marginal rate of substitution : What happens to the marginal rate of substitution as you move along a convex indifference curve? A linear indifference curve?
Refer to advertising activities performed by a marketer : Why can't the term marketing be used to refer to advertising activities performed by a marketer?
Method of producing its flak jackets : Warrior Wear Limited, a defense contractor, claims that it has a method of producing its flak jackets (“FJs”) that makes them puncture-proof regardless of the caliber of bullet or the power of the weapon used. The FJs account for eighty percent of Wa..

Reviews

Write a Review

Mathematics Questions & Answers

  Explain teresa runs once around the outside lane

If Teresa runs once around the outside lane, and Martina runs once around the inside lane, how much further does Teresa run than Martina?

  29 offered liberal arts degree computer engineering degree

242 offered a liberal arts degree. 116 offered a computer engineering degree. 467 offered a nursing degree. 35 offered

  Chart shows the price of three sizes of letters available

Helena and Naomi bought plastic letters to make a sign that shows both of their first names. This chart shows the price of the three sizes of letters available.

  Describe a relationship between m and n

Let A be a matrix of size m × n and let B be a matrix of size k × l .

  Define the scores on a certain test are normally distributed

The scores on a certain test are normally distributed with a mean score of 51 and a standard deviation of 2. What is the probability that a sample of 90 students

  Graphing absolute value functions

Graph each absolute value function and state its domain and range.

  T test hypothesis you gathered data on 100 children

cancer in young children is usually thought to be rare. it is believed that there is a 4 probability that a 0 to 4 year

  Calculate the regression equation

A strong linear relationship exists between two variables (r = 0.97). The equation of the least squares line(regression equation) is y = 15.75 - 0.55x. For what values of x should we use this equation to make predictions? Below are the ordered pai..

  Suppose you deposit 2000 for 5 years at a rate of 8

suppose you deposit 2000 for 5 years at a rate of 8. calculate the return a if the bank compounds anually n1 round

  Write down expression for his one week earnings in which

if the worker in a factory is paid rs 2 per hour for normal work and doubles the rate for over time work. write down

  X be a set and a binary relation on x

Let X be a set and a binary relation on X .

  Show that in the subgroup-intermediate subfield given in

show that in the subgroup-intermediate subfield given in the fundamental theorem of galois theory the subfield

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd