Double Sort

아직 제출이 없습니다시간 제한1.5초메모리 제한1024 MB

문제

Given two integers nn and mm (nmn \le m), you generate a sequence of nn integers as follows:

  1. First, choose nn distinct integers between 11 and mm, inclusive.
  2. Sort these numbers in non-decreasing order.
  3. Take the difference sequence, which transforms a sequence a_1a\_1, a_2a\_2, a_3a\_3, \ldots into a_1a\_1, a_2a_1a\_2-a\_1, a_3a_2a\_3-a\_2, \ldots
  4. Sort the difference sequence in non-decreasing order.
  5. Take the prefix sums of the sorted difference sequence to get the final sequence. This transforms a sequence b_1b\_1, b_2b\_2, b_3b\_3, \ldots into b_1b\_1, b_2+b_1b\_2+b\_1, b_3+b_2+b_1b\_3+b\_2+b\_1, \ldots

For example, with n=3n = 3 and m=10m = 10:

  1. Suppose we initially chose 66, 22, 99.
  2. The sequence in order is 22, 66, 99.
  3. The difference sequence is 22, 44, 33.
  4. The sorted difference sequence is 22, 33, 44.
  5. The prefix sums of the sorted difference sequence are 22, 55, 99.

Suppose you chose a uniformly random set of distinct integers for step 11. Compute the expected value for each index in the final sequence.

입력

The single line of input contains two integers nn (1n501 \le n \le 50) and mm (nm10,000n \le m \le 10\\,000), where nn is the size of the sequence, and all of the initial integers chosen are in the range from 11 to mm.

출력

Output nn lines. Each line contains a single real number, which is the expected value at that index of the final sequence. Each answer is accepted with absolute or relative error at most 10610^{-6}.