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
(14z - 10) and (17z + 4)". Find the measures of the angles.
Makovka662 [10]

Respuesta:

z=5,0

Explicación paso a paso:

-Probar con cada uno de los ángulos enteros

*17z+4=90°                                                    

17z=86                                                                          

    z=5,0                                                                        

*17z+4=270°                                                      

 17z=266                                                                    

     z=15,6                                                              

*17z+4=60°                                                          

17z=56                                                                        

   z=3,2                                                                          

*17z+4=45

 17z=41

    z=2,4

*17z+4=30°

17z=26  

   z=1,5

*17z+4=37°

 17z=33  

     z=1,9  

*17z+4=53°

 17z=49

     z=2,8

*17z+4=180°  

17z=176

    z=10,3  

*17z+4=360°

17z=356

   z=20,9

Comprobando:

14z-10=14(5,0)-10=70-10=60

4 0
3 years ago
Suppose a life insurance company sells a $240,000 one year term life insurance policy to a 25-year old female for $210. The prob
skelet666 [1.2K]

Answer:

$112.08 every year.

Step-by-step explanation:

Let's suppose a game in which we bet a certain amount of money ''A'' to a certain result and the probability of that result is ''p''. If the prize that we get is ''P'' therefore the expected value of gain is  :

E=p(P-A)+(1-p)(-A)=pP-A

Now,let's suppose that the female is ''betting on her death'' ⇒

P(she survives) = 0.999592

P(she doesn't survive) = 1 - 0.999592=4.08(10^{-4})

E(25-year old female) = 4.08(10^{-4}).(240000)-210=-112.08

The negative sign of E is important.It means that every year the 25-year old female will lose $112.08.

Therefore, the expected value of this policy to the insurance company is $112.08 every year.

5 0
3 years ago
I need help on this fast!!
ololo11 [35]

Answer:

i would say 12 inches

Step-by-step explanation:

the reason i say 12 inches is because 2 feet is 24 inches high and 15 feet is half of the ramps rank so half of 24 is 12.

3 0
4 years ago
I need help! It will be explained in the picture!
Finger [1]

Answer:

the answer is 15m2

Step-by-step explanation:

what you do is the red line in the middle is the surface area and you add those together to get the answer

3 0
3 years ago
What are the measures of interior angle a and exterior angle b?
givi [52]

Answer:

a = 180 - 92 - 27=61

b = 92 + 27= 119

Step-by-step explanation:

5 0
3 years ago
Read 2 more answers
Other questions:
  • If T is the point at a distance 3pi/5 from P(1, 0) on the unit circle with its center at (0, 0), in what quadrant does T lie?
    10·1 answer
  • A total of 41 people attended Rayleigh's birthday party. Rayleigh's sister invited some of the guests. If Raleigh invited 19 mor
    6·2 answers
  • When building a house, the number of days required to build varies inversely with with the number of workers. One house was buil
    13·1 answer
  • Covert 5/8 into a decimal
    10·2 answers
  • The length of a rectangular room is 7.3 feet longer than the width, x,
    7·1 answer
  • A linear function is a function in which the dependent variable changes at a constant rate relative to the independent variable.
    9·2 answers
  • The relation pairing the only child to his or her mother​
    10·2 answers
  • Need to find the area ​
    15·1 answer
  • I need help with my math homework please help
    10·2 answers
  • Clint is interested in making an offer on a house with hardwood floors that will need to be replaced. The hallway is 18 feet by
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!