public class Exercise18_04 {
  public static void main(String[] args) {
    for (int i = 1; i <= 10; i++)
      System.out.println(m(i));
  }

  public static double m(int i) {
    if (i == 1)
      return 1;
    else
      return m(i - 1) + 1.0 / i;
  }
}
