- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

# The first term of an AP is 5, the last term is 45 and the sum is 400. Find the number of terms and the common difference.

Given:

The first term of an A.P. is 5, the last term is 45 and the sum is 400.

To do:

We have to find the number of terms and the common difference of the A.P.

Solution:

Let the number of terms of the given A.P. be $n$, first term be $a$ and the common differnce be $d$.

First term $a=5$

Last term $l= 45$

Sum of all the terms $S_{n} =400$

We know that,

Sum of the $n$ terms$ S_{n} =\frac{n}{2}( a+l)$

$\Rightarrow 400=\frac{n}{2}( 5+45)$

$\Rightarrow 400=n(25)$

$\Rightarrow n=\frac{400}{25} =16$

Also,

$l=a+( n-1) d$

Therefore,

On subtituting the values of $a$, $l$ and $n$, we get,

$45=5+( 16-1) d$

$\Rightarrow 15d=45-5=40$

$\Rightarrow d=\frac{40}{15}=\frac{8}{3}$

Hence, the number of terms is $16$ and the common difference of the given A.P. is $\frac{8}{3}$.

- Related Questions & Answers
- Find the Number of quadruples where the first three terms are in AP and last three terms are in GP using C++
- Find the Nth term of the series 9, 45, 243,1377…in C++
- Differentiate between the long-term, short-term, and medium-term schedulers.
- What is the term serializability in DBMS?
- Write the difference between short term capital gain and long term capital gain.
- C++ Program to find the sum of the series 23+ 45+ 75+….. upto N terms
- Find the sum of first and last digit for a number using C language
- What is the meaning of immutable in term of String in java?
- C++ program to find nth term of the series 5, 2, 13 41,...
- Sum of the first and last digit of a number in PL/SQL
- Find if a number is part of AP whose first element and difference are given using C++.
- Difference between Long-Term and Short-Term Scheduler.
- C++ program to find Nth term of the series 1, 5, 32, 288 …
- Find the indices of the first and last unmasked values in Numpy
- MongoDB query to skip first 5 records and display only the last 5 of them
- What is the difference between an island and the continent?

Advertisements