#include<iostream> using namespace std; float suma(int n) { if (n==0) return 0; else return suma(n-1) + (float)n/(n+1)+(float)(n+1)/n; } int main() { int n; cin>>n; cout<<suma(n); system("pause"); return 0; }