Sum of the elements of the arithmetic progression

Assignment Help Basic Computer Science
Reference no: EM13707324

Question: An arithmetic progression is a sequence of numbers in which the distance (or difference) between any two successive numbers if the same.

This in the sequence 1, 3, 5, 7, ... , the distance is two while in the sequence 6, 12, 18, 24, ... , the distance is 6. Given the positive integer distance and the positive integer n , related the variable  sum with the sum of the elements of the arithmetic progression from 1 to n with distance .

For case, if distance is 2 and n is 10, then sum would be linked with 25 because 1+3+5+7+9 = 25 .

You have to show the sum of the elements of the arithmetic progression.

Reference no: EM13707324

Questions Cloud

Implement a tic tac toe game in any programming language : You have to do this assignment to make a game in computer programming language tic tac the boxes of the game should be interactive and in red and green color
Explain at least three scenarios where he is wrong : Explain at least three scenarios where he is wrong, that is, where users other than a file's owner need some kind of allowed access privileges
How does the choice affect the user of the class : Write a partial C++ class definition not implementation that contains the public interface of the Date class described in Exercise R9.2.
Python programming to solve this problem : Write a statement that adds 1 to deansList and prints studentName to standard out if gpa exceeds 3.5.
Sum of the elements of the arithmetic progression : An arithmetic progression is a sequence of numbers in which the distance (or difference) between any two successive numbers if the same.
Search a sorted array of floating point numbers : You need to write a program which uses binary search to search a sorted array of floating point numbers - Create an array of doubles, using the following statement. Notice that the array is sorted.
Prepare a assembly program to initialize the led outputs : Write a main.asm file in PSoC designer. Make sure to have the subsequent in place - Initialize the LED outputs to 0's and Set the corresponding bit in INT_MSK0 to 1.
Prepare a function that generates a polynomial : Write a function genPoly(n) that generates a polynomial of length n (degree n-1), all of whose coefficients are 1.0.
Identify one reason indexes are useful : Describe what you would have to do if indexes weren't available in order to get the reason you initially stated and how the query optimizer generates and selects a query plan.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identify the strengths and weaknesses of the nist programs

Identify the strengths and weaknesses of the NIST programs compared to the ISO standard.

  How will you run a process in background

How will you run a process in background? How will you bring that into foreground and how will you kill that process?

  Prove that machine precision as bound for relative round off

Prove that machine precision (epsilon) calculated by mathlab's eps function can be utilized as a bound for relative round off.

  Which industrialization essentially made us less independent

Many experts assert which industrialization has essentially made us less independent and more closely related to other people than ever before.

  Internet access providers

Should Internet access providers or telephone companies be allowed to monitor how you use your Internet or telephone connection? Why or why not?

  Statements that make variable-s field-s values consistent

Write one or two statements that make this variable's field's values consistent with the mathematical notion of "origin".

  What are some additional performance metrics of interest

Suppose you have two systems. System #1 processes jobs at rate 100 jobs/sec and system #2 at a rate 150 jobs/sec. What is the speed-up and relative change of system #1 with respect to system #2?

  Which command displays network activity statistics for tcp

Which command displays network activity statistics for TCP, UDP, and IP? a. telnet b. nbtstat-s c. ping -s d. netstat -s e. nslookup

  Scrum vs plan-based software development strategies

Scrum vs. Plan-Based Software Development Strategies

  Approach appropriate for company forefront of technology

However, adopting a secondary approach where others adopt early and a firm learns from their mistakes is often a viable strategy. When is each approach most appropriate and why?

  Processor do when it receives an interrupt request

What does the processor do when it receives an interrupt request from an external device? Describe the sequence of events and the signals activated.

  Prepare a proposal to deploy windows server onto an existing

Prepare a proposal to deploy Windows Server onto an existing network, based on a provided scenario. The proposal will include deployment, security policy, application and data provisioning, monitoring, and continuity plans. For a more detailed projec..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd