Răspuns :
#include <iostream>
using namespace std;
int main(){
int n,i;
int suma = 0;
cout << "N : ";
cin >> n;
for (i=1;i<=n;i++)
cout << (2*n-1)*(2*n+1) << " ";
suma += (2*n-1)*(2*n+1);
cout << "\nf " <<suma;
}
#include <iostream>
using namespace std;
int main(){
int n,i;
int suma = 0;
cout << "N : ";
cin >> n;
for (i=1;i<=n;i++)
cout << (2*n-1)*(2*n+1) << " ";
suma += (2*n-1)*(2*n+1);
cout << "\nf " <<suma;
}