1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Free_Kalibri [48]
3 years ago
10

An arithmetic progression is a sequence of numbers in which the distance (or difference) between any two successive numbers if t

he same. This in the sequence 1, 3, 5, 7, ..., the distance is 2 while in the sequence 6, 12, 18, 24, ..., the distance is 6. Given the positive integer distance and the positive integer n, associate the variable sum with the sum of the elements of the arithmetic progression from 1 to n with distance distance. For example, if distance is 2 and n is 10, then sum would be associated with 25 because 1+3+5+7+9 = 25.
Mathematics
2 answers:
earnstyle [38]3 years ago
3 0

Answer:

Step-by-step explanation:

Solution:

- We are to write a program for evaluating the sum to Nth of an arithmetic sequence such that the sequence starts from positive integer 1, 3 , 5 , 7 , .. n.

- The sum to nth for the arithmetic series is given by two parameters i.e first integer a = 1 and the distance between successive integers d = 2 in our case.

- For any general distance d we can write our sum to nth as:

          Sum to nth = a + (a+d) + (a+2*d) + (a+3*d) .... (a + (n-1)*d)

- From above sequence we can see that every successive number is increased by distance d and added in previous answer.

- We will use an iteration loop for a variable "sum", which is cycled by a "range ( , , )" function.

- The parameters of the range functions corresponds to:

                   range ( first integer , last integer , step size )  

                   range ( a , n + 1 , d )

- Then we can cast the loop as follows:

 " int sum = 0

   int d = 2

   int a = 1

      for i in range ( a , n + 1 , d )

            sum += i

  "

- We see that iteration parameter i starts from a = 1, with step size d = 2 and the sum is previously stored sum value plus i for the current loop.

monitta3 years ago
3 0

Answer:

def arithmetic (n, dist):

           sum = 0

           for num in range(1, n + 1, dist):

                    sum += num

           print(sum)

arithmetic(10, 2)

Step-by-step explanation:

The question asked us to write a program given the positive integer n, and positive integer distance and then associate the variable sum with the sum of the elements of the arithmetic progression from 1 to n with distance.

using python the code can be written as:

def arithmetic (n, dist):

I wrote a function that accept 2 argument n the positive integer and the distance , dist.

sum = 0

The sum is equal to 0 at the beginning.

for num in range(1, n + 1, dist):

The code loop through the number in the range of 1 to the n value with a distance value.

sum += num

The looped value are then added to the sum value to get the sum.

print(sum)

The sum are printed

arithmetic(10, 2)

The function is called and filled with the required argument . In our case the positive integer n is inputted and the distance value.

You might be interested in
a) Read section 1.5 in the Yakir textbook. If you were a teacher and had 30 students in your class and wanted to know the class
OlgaM077 [116]

Answer:

Parameter

Step-by-step explanation:

Required

Parameter of Statistic

From the question, we understand that the teacher is to calculate the class average.

To calculate the class average, the teacher will use the mean function/formula, which is calculated as:

Mean = \frac{\sum x}{n}

Generally, mean is an example of a parameter.

<em>So, we can conclude that the teacher will use parameer</em>

7 0
3 years ago
Flow meters are installed in urban sewer systems to measure the flows through the pipes. In dry weatherconditions (no rain) the
ziro4ka [17]

Answer:

a) \frac{(8)(30.23)^2}{20.09} \leq \sigma^2 \leq \frac{(8)(30.23)^2}{1.65}

363.90 \leq \sigma^2 \leq 4430.80

Now we just take square root on both sides of the interval and we got:

19.08 \leq \sigma \leq 66.56

b) For this case we are 98% confidence that the true deviation for the population of interest is between 19.08 and 66.56

Step-by-step explanation:

423.6, 487.3, 453.2, 402.9, 483.0, 477.7, 442.3, 418.4, 459.0

Part a

The confidence interval for the population variance is given by the following formula:

\frac{(n-1)s^2}{\chi^2_{\alpha/2}} \leq \sigma^2 \leq \frac{(n-1)s^2}{\chi^2_{1-\alpha/2}}

On this case we need to find the sample standard deviation with the following formula:

s=sqrt{\frac{\sum_{i=1}^8 (x_i -\bar x)^2}{n-1}}&#10;And in order to find the sample mean we just need to use this formula:&#10;[tex]\bar x =\frac{\sum_{i=1}^n x_i}{n}

The sample deviation for this case is s=30.23

The next step would be calculate the critical values. First we need to calculate the degrees of freedom given by:

df=n-1=9-1=8

The Confidence interval is 0.98 or 98%, the value of \alpha=0.02 and \alpha/2 =0.01, and the critical values are:

\chi^2_{\alpha/2}=20.09

\chi^2_{1- \alpha/2}=1.65

And replacing into the formula for the interval we got:

\frac{(8)(30.23)^2}{20.09} \leq \sigma^2 \leq \frac{(8)(30.23)^2}{1.65}

363.90 \leq \sigma^2 \leq 4430.80

Now we just take square root on both sides of the interval and we got:

19.08 \leq \sigma \leq 66.56

Part b

For this case we are 98% confidence that the true deviation for the population of interest is between 19.08 and 66.56

4 0
3 years ago
Order the following greatest to least <br><br> 1. 10kg<br> 2. 100g<br> 3. 1,000,000mg
svlad2 [7]

Answer:

<em>1, 2, 3</em>

Step-by-step explanation:

Of the three units, the <em>kilogram</em> is the largest and the <em>milligram</em> is the smallest. The prefix “<em>kilo</em>” means a thousand and “<em>milli</em>” means one-thousandths.

1,000,000mg = 1kg  

1kg = 1,000g

8 0
3 years ago
Read 2 more answers
Merrill is playing a simple game of dice. For every 6 rolled, Merrill will win $5. For any other number, he must pay $2. How muc
Schach [20]

Solution -

The probability of getting 6 from a single roll of a fair dice = \frac{1}{6}

The probability of getting any other number rather than 6 would be 1-\frac{1}{6} = \frac{5}{6}

So when the outcome is 6, then he wins $5 ,otherwise he has to pay $2

So

E(X) = Expectation value = (\frac{1}{6} )(5) - (\frac{5}{6} )(2)                                    ( ∵ $5 gain so +ve and $2 loss so -ve)

=\frac{-5}{6}

∴ So Merrill will lose \frac{5}{6} dollar


7 0
3 years ago
Read 2 more answers
The angles shown are supplementary. What is the value of x ?
almond37 [142]

Answer:

D

Step-by-step explanation:

This is because if u subsitute x with 17, 17x5 is 85 and 85+95= 180

5 0
3 years ago
Read 2 more answers
Other questions:
  • Halp pls will give brainlkiest
    6·2 answers
  • Use the graph to find the factorization of x^2 - 5x + 4
    7·1 answer
  • Please help (. Square root and the Pythagorean theorem
    7·2 answers
  • Write the explicit formula that represents the geometric sequence -2, 8, -32, 128
    5·1 answer
  • Simplify the given polynomial and use it to complete the statement.
    8·2 answers
  • Pyramid A is a square pyramid with a base side length of 9 inches and a height of 10 inches. Pyramid B has a volume of 1,350 cub
    10·1 answer
  • PLSSSSSSS HELPPPPPPP I WILL GIVE BRAINLIESTTTTTTTTTT!!!!!!!!!!!!!!!!!!!!!PLSSSSSSS HELPPPPPPP I WILL GIVE BRAINLIESTTTTTTTTTT!!!
    12·1 answer
  • Find the value of angle b A: 46 B:24 C:134 D:66
    15·2 answers
  • Pete's blueprint shows a layout of a house. Every 6 inches in the blueprint represents 1.5 feet of the actual house. What are th
    13·1 answer
  • Name 2 types of subtraction
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!