public static long solve ( long x , long y , long k ) {
  x -- ;
  long a = y * k + ( k - 1 ) + ( x - 1 ) ;
  return a / x + k ;
}

public static long solve ( long x , long y , long k ) { x -- ; long a = y * k + ( k - 1 ) + ( x - 1 ) ; return a / x + k ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (expression_statement (update_expression (identifier))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (return_statement (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))))