#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long int ll; typedef pair pii; typedef tuple t3; ll dp[100010]; int main() { int n, c, v; cin >> n >> c >> v; fill(dp, dp + 100010, 1e7); dp[0] = 0; dp[1] = 0; dp[2] = c + v; for(int i = 3;i < 2 * n;i++) { dp[i] = dp[1] + c + v * (i-1); for(int j = 2;j < sqrt(i) + 1;j++) { if(i % j == 0) { dp[i] = min(dp[i], dp[j] + c + v * ((i-1) / j)); } } } ll m = 1e10; for(int i = n;i <= 2 * n;i++) { m = min(m, dp[i]); } cout << m << endl; return 0; }