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 like right now.
denpristay [2]

Let's go:


Big triangle:

12 + 3x - 6 = 3x + 6

10 + 8 = 18


\frac{10}{18} = \frac{3x - 6}{3x + 6} \\\\ 10.(3x + 6) = 18.(3x - 6) \\\ 30x + 60 = 54x - 108 \\\ 54x - 30x = 60 + 108 \\\ 24x = 168 \\\ x = 7


I hope I helped you.


4 0
3 years ago
Read 2 more answers
9/16 in simplest form
-Dominant- [34]
9/16.

There is no common factor to 9 and 16.

No number can go into 9 and at the same time go into 16.

So in simplest form it is still = 9/16 
3 0
3 years ago
The Trial Urban District Assessment (TUDA) is a government-sponsored study of student achievement in large urban school district
Bas_tet [7]

Answer:

A. Because the sample size is very large.

Step-by-step explanation:

The sample is quite large, so the t test is safe. With a sample size of at least 100, this test is going to be safe.

So the correct answer is:

A. Because the sample size is very large.

4 0
3 years ago
A golf tournament has five rounds. The players are given scores for each round based on how many strokes they are above or below
Sedaia [141]

Answer:

(A) ∫₁⁵[Xₙ + k] where n ranges from 1 to 5

(B) 73.6

Step-by-step explanation:

The question is clear enough. Kudos!

So there are many players but we're focusing on Ricky.

Ricky has already recorded his score for each of the 5 rounds in the tournament.

The number of strokes in Ricky's record are to be added to or subtracted from a given number 72

ROUND 1:    [72 - 5] strokes = 67

ROUND 2:   [72 + 6] strokes = 78

ROUND 3:   [72 - 2] strokes = 70

ROUND 4:   [72 + 4] strokes = 76

ROUND 5:   [72 + 5] strokes = 77

(A) Write an expression to represent Ricky's total number of strokes for the five rounds.

Do not panic at this first exercise. You are to write an expression which when evaluated, will give the total number of strokes for all five rounds!

You are already given an abstract number '72' to work with in this question.

It is a fixed quantity which influences the value of strokes for each round.

We will represent this by an algebra, if we have to create the above required expression.

The expression will then be:

∫₁⁵[Xₙ + k] where n ranges from 1 to 5

You already know that the sigma sign '∫' represents summation and that's summation from the subscript '1' to the superscript '5'.

X₁ would be -5,   X₂ would be +6,   X₃ would be -2,   X₄ would be +4,   X₅ would be +5

K is the constant 72

(B) What was Ricky's average number of strokes per round?

Out of the 5 rounds, the average number of strokes per round would be

[67 + 78 + 70 + 76 +77] ÷ 5

= 368/5  = 73.6

6 0
3 years ago
Can someone help me and show me how to solve this?
DedPeter [7]
XYA = (104 -52)/2

52 /2 = 26

the answer is 26 degrees
8 0
3 years ago
Read 2 more answers
Other questions:
  • A scale drawing of a building has the scale 0.5in : 6ft. A wall is 30 ft long. How long will the wall be on the drawing?
    5·1 answer
  • 8 1/2 x 2 3/4 x 2/3= 12
    8·1 answer
  • somebody plz help me (the question i need help with is the one that is circled in pink and has the number 4)
    12·1 answer
  • Two common envelope sizes are 3.50×6.50 and 4×9.50 are these envelope similar?explain
    13·1 answer
  • 7x - 2 < 10 slove for x and show work
    13·1 answer
  • You have a meal at a restaurant. The sales tax is 8%. You leave a tip for the waitress that is 20% of the pretax price. You spen
    7·1 answer
  • 1+9-6=a<br> what is a<br> please show work
    8·2 answers
  • Una pelota sale disparada desde el nivel del suelo, con una velocidad de 40 m/s y un ángulo de elevación de 50°. a) Calcule la a
    15·1 answer
  • What is the solution of the equation (x-5)^2+3(x-5)+9=0 use u substitution and the quadratic formula to solve
    11·1 answer
  • Which expression is equivalent to <img src="https://tex.z-dn.net/?f=-4x%5E%7B-5%7D%20x%5E%7B0%7D" id="TexFormula1" title="-4x^{-
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!