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]
2 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]2 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.

monitta2 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
Evaluate BD for A = 5, B = -2, C = 4 and D = -6.
bezimeni [28]
B*D?
B=-2
D=-6
B*D=(-2)*(-6)=12
5 0
2 years ago
Read 2 more answers
Help helppppppppppp, (dies)
trasher [3.6K]
1. True
2. False
3. False
4. True
6 0
2 years ago
The sanchez family goes out for dinner, and the price of the meals is $60. The sales tax on the Meals is 7 percent, and they als
dem82 [27]

Answer:

73.3

Step-by-step explanation:

7%=7÷100=0.07 ×60=4.2

15%=15÷100=0.15×60=9

add you answers to 60 and to should get 73.2

5 0
3 years ago
It is 17 miles to the mall how many inches is that on a map
Alona [7]
In order to answer that question, we need to know the scale of the map.
Without that information, no answer is possible.

I think you have it in the first part of the question ... the part you decided
not to post.
_________________________

OK.  Now that you've provided the scale of the map,
answering the question is a piece-o-cake.
Use a proportion:

  (1 inch on the map) / (4 miles on the ground) = ('x' on the map) / (17 miles on the ground)
3 0
3 years ago
A man flies a kite at a height of 15 ft. The wind is carrying the kite horizontally from the man at a rate of 5 ft./s. How fast
Misha Larkins [42]

Answer:

4.4 ft/s

Step-by-step explanation:

Height = 15ft

Rate= 5 ft/s

Distance from the man to the kite= 32ft

dh/dt = 5 ft/s

h = √32^2 - 15^2

h = √ 1025 - 225

h = √800

h = 28.28ft

D = √15^2 + h^2

dD/dt = 1/2(15^2 + h^2)^-1/2 (2h) dh/dt

= h(225 + h^2)^-1/2 dh/dt

= (h / √225 + h^2)5

= (28.28 / √225 + 28.28^2)5

= (28.28 / √1024.7584)5

= (28.28/32)5

= 0.88*5

= 4.4 ft/s

3 0
3 years ago
Other questions:
  • Ebuka's monthly rent is
    7·2 answers
  • How many terms are in the arithmetic sequence 1313, 1616, 1919, ……, 7070, 7373?
    6·1 answer
  • Find the lateral area and surface area of cone
    6·1 answer
  • How can you determine the LCM of 2 prime numbers?
    14·2 answers
  • A 2,768–foot–long straight fence has posts that are set 8 feet on center; that is, the distance between the centers of two adjac
    9·1 answer
  • What is the volume of this rectangular prism? e) 4 in. 4 in. 5 in.​
    9·2 answers
  • What is 19 half of??
    6·2 answers
  • List the angles of the triangle in order from smallest to largest. In triangle Upper A Upper C Upper B, line segment Upper A Upp
    9·1 answer
  • Just take my points im quitting brainly cause mostly every time I ask a question people only answer for points so just take them
    12·2 answers
  • -NEED AN ANSWER FAST-
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!