static int findNumber ( int n ) {
  if ( n == 1 ) return 3 ;
  int i = 2 ;
  int count = 0 ;
  int second = 1 ;
  int first = 1 ;
  while ( count <= n ) {
    if ( i % 2 == 0 ) {
      first = divCount ( i + 1 ) ;
      count = first * second ;
    }
    else {
      second = divCount ( ( i + 1 ) / 2 ) ;
      count = first * second ;
    }
    i ++ ;
  }
  return i * ( i - 1 ) / 2 ;
}

static int findNumber ( int n ) { if ( n == 1 ) return 3 ; int i = 2 ; int count = 0 ; int second = 1 ; int first = 1 ; while ( count <= n ) { if ( i % 2 == 0 ) { first = divCount ( i + 1 ) ; count = first * second ; } else { second = divCount ( ( i + 1 ) / 2 ) ; count = first * second ; } i ++ ; } return i * ( i - 1 ) / 2 ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (return_statement (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (decimal_integer_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (update_expression (identifier))))) (return_statement (binary_expression left: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (decimal_integer_literal)))))