Dãy số

View as PDF

Submit solution

Points: 1.00 (partial)
Time limit: 1.0s
Memory limit: 256M
Input: stdin
Output: stdout

Author:
Problem type
Allowed languages
Python, Scratch

Cho dãy số ~2, 5, 9, 14, 20, ...~

Viết chương trình nhập số ~N~ từ bàn phím và đưa ra số thứ ~N~ của dãy.

Input
  • Một số nguyên dương ~N~ ~(0 < N \le 10^9)~
Output
  • Một số là số thứ ~N~ của dãy.
Sample Input 1
4
Sample Output 1
14
Sample Input 2
10
Sample Output 2
65

Comments

Please read the guidelines before commenting.


There are no comments at the moment.