input output

5 2
11 4
17 -
20 7
- 10
8 3

To determine the output for each input, we need to identify the pattern or rule that governs the relationship between the input and corresponding output. Let's analyze the given pairs:

Input: 5 -> Output: 2
Input: 11 -> Output: 4
Input: 17 -> Output: -
Input: 20 -> Output: 7
Input: - -> Output: 10
Input: 8 -> Output: 3

Looking at the pattern, it seems that the output is obtained by subtracting a certain value from the input. Let's break it down further:

The first pair: 5 -> 2
To get from 5 to 2, we subtract 3.

The second pair: 11 -> 4
To get from 11 to 4, we subtract 7.

The fourth pair: 20 -> 7
To get from 20 to 7, we subtract 13.

The sixth pair: 8 -> 3
To get from 8 to 3, we subtract 5.

From this observation, it appears that the pattern is subtracting consecutive odd numbers from the input to obtain the output.

So, to get the output for the third pair (17), we need to subtract the next consecutive odd number, which is 15:
17 - 15 = 2

Therefore, the output for the third pair is 2.

Now, let's summarize the input-output pairs:

Input: 5 -> Output: 2
Input: 11 -> Output: 4
Input: 17 -> Output: 2
Input: 20 -> Output: 7
Input: - -> Output: 10
Input: 8 -> Output: 3