MeetCode
Arithmetic Progression Term
C
C++
Computer Mathematics
CSS
DSA
HTML
Java
JavaScript
NodeJS
PHP
Programming Interview
Python
ReactJS
SQL
Run
Submit
Dark
Problem Statement
Solutions
Submissions
Arithmetic Progression Term
Easy
Computer Mathematics
Recurrences
28 views
Explanation
Complexity
Problem Statement
Given a1,d,n find n-th term.
Input Format
Three integers a1 d n.
Output Format
One integer.
Example
Input
2 3 5
Output
14
Constraints
n>=1
Input / Output Format
Input Format
Three integers a1 d n.
Output Format
One integer.
Constraints
n>=1
Examples
Input:
2 3 5
Output:
14
Example Solution (Public)
Computer Mathematics
Term = a1 + (n-1)*d.
Official Solution Code
Wrap
Copy
Term = a1 + (n-1)*d.
Please
login
to submit solutions.
Editor
C
C++
Computer Mathematics
CSS
DSA
HTML
Java
JavaScript
NodeJS
PHP
Programming Interview
Python
ReactJS
SQL
Test Cases
Output
Submission Result
Input
2 3 5
Expected Output
14
Compile Output
Error
Output
Please
login
to submit solutions.