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
Need help with this plz
patriot [66]
B since it is 8 * -1

6 0
4 years ago
PLEASE ANSWER if a ball falls off a cliff that is 30 meters tall and down to the bottom of a pond that is 15 meters deep, what i
Dvinal [7]

Answer:

30

Step-by-step explanation:

<h2 /><h2 />

8 0
3 years ago
Which the number below has the least value?​
Sav [38]

Answer:

I don't know what the options below are.... but look at the last digit and order them like this

0 1 2 3 4 5 6 7 8 9

8 0
3 years ago
A ball dropped from the top of a building can be modeled by the function f(t)=-16^2+36, where t represents time in seconds
Viefleur [7K]

Answer:

The ball is dropped from a height of 36 feet

The bee and the ball will collide after approximately 1.3 seconds

The bee and the ball will collide at approximately 8 feet above the ground

The ball hits the ground after 1.5 seconds

Step-by-step explanation:

<u><em>The complete question is</em></u>

A ball dropped from the top of the building can be modeled by the function f(t)=-16t^2 + 36 , where t represents time in seconds after the ball was dropped. A bee's flight can be modeled by the function, g(t)=3t+4, where t represents time in seconds after the bee starts the flight.

The graph represents the situation.

select all that apply

1) The bee launches into flight from the ground.

2) The ball is dropped from a height of 36 feet.

3) The bee and the ball will collide after approximately 1.3 seconds.

4) The bee and the ball will collide after approximately 8 seconds.

5) The bee and the ball will collide at approximately 8 feet above the ground.

6) The bee and the ball will not collide.

7) The ball hits the ground after 1.5 seconds

see the attached figure to better understand the problem

<u><em>Verify all the options</em></u>

case 1) The bee launches into flight from the ground.

The statement is false

Because

we have

g(t)=3t+4

For t=0

g(t)=3(0)+4=4\ ft

That means ----> The bee launches into flight from a height 4 feet above the ground

case 2) The ball is dropped from a height of 36 feet

The statement is true

Because

For t=0

f(t)=-16(0)^2+36=36\ ft

case 3) The bee and the ball will collide after approximately 1.3 seconds

The statement is true

Because

Equate f(t) and g(t)

-16t^2+36=3t+4

-16t^2-3t+32=0

solve the quadratic equation by graphing

The solution is t=1.324 sec

see the attached figure N 2

case 4) The bee and the ball will collide after approximately 8 seconds

The statement is false

Because, the bee and the ball will collide after approximately 1.3 seconds (see case 3)

case 5) The bee and the ball will collide at approximately 8 feet above the ground

The statement is true

Because

For t=1.324 sec

substitute the value of t in f(t) or g(t)

g(t)=3(1.324)+4=7.97\ ft

case 6) The bee and the ball will not collide

The statement is false

see case 3) and case 5)

case 7) The ball hits the ground after 1.5 seconds

The statement is true

Because

we know that

The ball hit the ground when the value of f(t) is equal to zero

so

For f(t)=0

-16t^2+36=0

t^2=\frac{36}{16}

t=\frac{6}{4}=1.5\ sec

4 0
3 years ago
Read 2 more answers
What is the factored form of x^2-9x+20
mina [271]

Answer:

(

−

5

)

(

−

4

)

Step-by-step explanation:

Not 100 percent sure

4 0
3 years ago
Other questions:
  • The diameter of a circle is 4 meters. What is the circle's circumference?
    12·1 answer
  • The average snowfall in Norfolk, VA for January is 2 3/5 inches, Febuary 2 9/10 inxhes, March 1 inch, and December 9/10 inches.
    5·1 answer
  • It costs $7.00 to purchase a
    10·2 answers
  • If you could answer both questions, that would be
    14·2 answers
  • The first step in determining the solution to the system of equations, y = -x2 - 4x – 3 and y = 2x + 5, akyettically is to set t
    7·1 answer
  • Isme estimated that there are 50 students in the seventh-grade class. There are actually 40 students in the seventh-grade class.
    13·1 answer
  • Jada has 7/8 cups of cheese are cheese bread recipe calls for 1/6 cups of cheese how many times can she make her recipe with the
    5·1 answer
  • Need help these 3 math ?​
    8·1 answer
  • If f (x) = 8 (5x - 2) find f (x)​
    11·1 answer
  • Help me plsssss Plsssss
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!