static Boolean isPentagonal ( int N ) {
  int i = 1 , M ;
  do {
    M = ( 3 * i * i - i ) / 2 ;
    i += 1 ;
  }
  while ( M < N ) ;
  return ( M == N ) ;
}

static Boolean isPentagonal ( int N ) { int i = 1 , M ; do { M = ( 3 * i * i - i ) / 2 ; i += 1 ; } while ( M < N ) ; return ( M == N ) ; }
(method_declaration (modifiers) type: (type_identifier) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal)) declarator: (variable_declarator name: (identifier))) (do_statement body: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (decimal_integer_literal) right: (identifier)) right: (identifier)) right: (identifier))) right: (decimal_integer_literal)))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (return_statement (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))