#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int T[20],i;
// tablicę wypełniamy wielokrotnościami liczby 3
for(i = 0; i < 20; i++) T[i] = 1 * pow(-1,i+1 ) * ((-2*(i+1)+pow(-1,i+1 )-1 ) /4) ;
// wyświetlamy zawartość tablicy
for(i = 0; i < 20; i++) cout << "T[" << i << "] = " << T[i] << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWF0aC5oPgogCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAKaW50IG1haW4oKQp7CiAgICBpbnQgVFsyMF0saTsKIAogICAgLy8gdGFibGljxJkgd3lwZcWCbmlhbXkgd2llbG9rcm90bm/Fm2NpYW1pIGxpY3pieSAzCiAKICAgIGZvcihpID0gMDsgaSA8IDIwOyBpKyspIFRbaV0gPSAgMSAqIHBvdygtMSxpKzEgKSAqICAoKC0yKihpKzEpK3BvdygtMSxpKzEgKS0xICkgLzQpICAgICA7ICAgICAgCiAKICAgIC8vIHd5xZt3aWV0bGFteSB6YXdhcnRvxZvEhyB0YWJsaWN5CiAKICAgIGZvcihpID0gMDsgaSA8IDIwOyBpKyspIGNvdXQgPDwgIlRbIiA8PCBpIDw8ICJdID0gIiA8PCBUW2ldIDw8IGVuZGw7CiAKICAgIHJldHVybiAwOwp9IA==