SP4593 ARITHSEQ - Arithmetic sequence
Description
[English](/problems/ARITHSEQ/en/) [Tiếng Việt](/problems/ARITHSEQ/vn/) Given an arithmetic sequence a, a + d, a + 2\*d, ..., a + n\*d.
Input Format
\- A line containing a, d, n, x.
Output Format
\- The result found.