#P3274. 双等差数列

双等差数列

Description

求下列双等差数列的第N项。
1 2 4 7 11 16 22…

Input Format

 一行1个正整数:N,范围在[1,100]。

Output Format

 1个整数。
4
7

Source

循环 数列