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
Which of the angles in the figure are supplementary to 7?
ira [324]
Number D is the correct answer I think
3 0
3 years ago
The table shows the distance in feet, y, that a rocket traveled in x seconds.
Murrr4er [49]

Answer:

The correct option is D. y = 25x^{2}.

Step-by-step explanation:

i) From the table and our own observation and a trial and error approach we

  can clearly see that the equation that matches y in feet ( the distance

  traveled by the rocket) and x in seconds ( the time elapsed) is given by the

  equation y = 25x^{2}

 Therefore the correct option is D. y = 25x^{2}.

7 0
3 years ago
Read 2 more answers
I will mark as brainliest. Area of a square is 25^m. Find its Perimeter. With working please
77julia77 [94]

Answer:

perimeter = 20 m

Step-by-step explanation:

given the area of the square = 25 m² and

area of a square = s² ( where s is the side length ), then

s² = 25 ( take the square root of both sides )

s = \sqrt{25} = 5 ← length of side

perimeter = 4s = 4 × 5 = 20 m


3 0
3 years ago
A coin and a die are tossed. Calculate the probability of getting tails and a 5.
e-lub [12.9K]

Answer:

1/4

Step-by-step explanation:

2/8 a die has has 6 sides and a coin has 2 sides add them up thats 8 sides in total. Then you get 2/8 simplify it and you get 1/4. I'm bad at Math but I'm pretty sure this is right.

7 0
3 years ago
Neiwiendnjcisnwbdjxisjbshdixjsnshdixjnsbskxknxx
strojnjashka [21]
They do be sending aliens to Brainly doe
4 0
3 years ago
Other questions:
  • In a large on-the-job training program, half of the participants are female and half are male. In a random sample of six partici
    13·1 answer
  • The row-echelon form of the augmented matrix of a system of equations is given. Find the solution of the system. FYI it’s not b
    12·1 answer
  • Is it true or false ,, the unit for both force and weight is the Newton (n)
    5·1 answer
  • Which inequalities correctly show the relationship between the numbers 13, −4, and −17?
    5·1 answer
  • In March it rained 8.23 inches. It rained 5.96 inches less in April than in March.
    12·1 answer
  • What is 2E*-4V*:34>2+sv5
    9·1 answer
  • What does 5 mean? What is the value of 5
    10·1 answer
  • Help me please!! I don't know what to do I'm so confused!!!
    7·2 answers
  • What is the experimental probability of hitting a polka dot balloon or solid balloon
    6·1 answer
  • "eight times the difference of a number and three is sixty-four"?
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!