" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2025 KUDO.TIPS - All rights reserved.
int a(int n)
{
if (n == 1)
return 1;
else
return a(n-1)+2*n+1;
}
int main()
{
int n;
std::cin >> n;
std::cout << a(n);
}