In dãy #2

View as PDF



Problem type
Points: 10 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Cho 1 số \(n\), in 1 dãy số mới có \(n\) phần tử sao cho số thứ \(i\) là tổng các số từ \(1\) đến \(i\).

Input

  • Gồm một dòng duy nhất chứa số nguyên dương \(n\) \((n \leq 10000)\).

Output

  • Gồm \(n\) dòng, dòng thứ \(i\) là tổng từ \(1\) đến \(i\).

Example

Test 1
Input
3
Output
1
3
6

Comments

There are no comments at the moment.