public static void solve ( ) {
  int m = scan . nextInt ( ) , n = scan . nextInt ( ) ;
  double ans = m ;
  for ( int i = 1 ;
  i < m ;
  i ++ ) {
    ans -= Math . pow ( ( double ) i / m , n ) ;
  }
  System . out . println ( ans ) ;
}

public static void solve ( ) { int m = scan . nextInt ( ) , n = scan . nextInt ( ) ; double ans = m ; for ( int i = 1 ; i < m ; i ++ ) { ans -= Math . pow ( ( double ) i / m , n ) ; } System . out . println ( ans ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (identifier))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (cast_expression type: (floating_point_type) value: (identifier)) right: (identifier)) (identifier))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))