static int sumAP ( int n , int d ) {
  n /= d ;
  return ( n ) * ( 1 + n ) * d / 2 ;
}

static int sumAP ( int n , int d ) { n /= d ; return ( n ) * ( 1 + n ) * d / 2 ; }
(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))) body: (block (expression_statement (assignment_expression left: (identifier) right: (identifier))) (return_statement (binary_expression left: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (parenthesized_expression (binary_expression left: (decimal_integer_literal) right: (identifier)))) right: (identifier)) right: (decimal_integer_literal)))))