/*
Generate the following series
3 6 11 18 27 38 51
*/
#include <stdio.h>
int main() {
int n = 7, term = 3;
for (int i = 1; i <= n; i++) {
term += (i + 2);
}
return 0;
}
LyoKR2VuZXJhdGUgdGhlIGZvbGxvd2luZyBzZXJpZXMKMyA2IDExIDE4IDI3IDM4IDUxCiovCiNpbmNsdWRlIDxzdGRpby5oPgoKaW50IG1haW4oKSB7CiAgICBpbnQgbiA9IDcsIHRlcm0gPSAzOwogICAgCiAgICBmb3IgKGludCBpID0gMTsgaSA8PSBuOyBpKyspIHsKICAgICAgCiAgICAgICAgcHJpbnRmKCIlZCIsdGVybSk7CiAgICAgICAgICB0ZXJtICs9IChpICsgMik7CiAgICAgICAgCiAgICB9CiAgICBwcmludGYoIlxuIik7CiAgICAKICAgIHJldHVybiAwOwp9Cg==