#include<iostream>
#include <cstdlib>
#include<Windows.h>
using namespace std;
int main(){
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
int i,n;
double S,x,c;
S = 0;
c = 1;
cout << "Введите х,n" << endl;
cin >> x >> n;
for(i = 1; i <= n; i++){
c = c + x/i;
S = S + c;
}
cout << S << endl;
system("pause");
return 0;
}