The numbers $ 1, 2,\ldots, 50 $ are written on a blackboard. Each minute any two numbers are erased and their positive difference is written instead. At the end one number remains. Which values can take this number?
To solve this problem, we need to determine the possible values of the last remaining number after repeatedly erasing two numbers and writing their positive difference. We will use mathematical induction to prove the possible values.

### Base Cases:
1. **For \( n = 1 \):**
   - The only number is \( 1 \). 
   - The only possible value is \( 1 \).

2. **For \( n = 2 \):**
   - The numbers are \( 1 \) and \( 2 \).
   - The possible value is \( |2 - 1| = 1 \).

3. **For \( n = 3 \):**
   - The numbers are \( 1, 2, 3 \).
   - Possible values are \( 0 \) and \( 2 \):
     - \( (1, 2, 3) \rightarrow (1, 1) \rightarrow 0 \)
     - \( (1, 2, 3) \rightarrow (1, 3) \rightarrow 2 \)

4. **For \( n = 4 \):**
   - The numbers are \( 1, 2, 3, 4 \).
   - Possible values are \( 0, 2, \) and \( 4 \):
     - \( (1, 2, 3, 4) \rightarrow (1, 2, 3) \rightarrow 0 \) (as shown in \( n = 3 \))
     - \( (1, 2, 3, 4) \rightarrow (1, 3, 4) \rightarrow 2 \) (as shown in \( n = 3 \))
     - \( (1, 2, 3, 4) \rightarrow (1, 2, 4) \rightarrow 4 \)

### Inductive Step:
Assume that for \( n = 4j + k \) where \( k \in \{1, 2, 3, 4\} \), the possible values are:
- \( 4j + 1 \): \( 1, 3, \ldots, 4j + 1 \)
- \( 4j + 2 \): \( 1, 3, \ldots, 4j + 1 \)
- \( 4j + 3 \): \( 0, 2, \ldots, 4j + 2 \)
- \( 4j + 4 \): \( 0, 2, \ldots, 4j + 4 \)

We need to show that the pattern holds for \( n = 4(j+1) + k \).

1. **For \( n = 4(j+1) + 1 = 4j + 5 \):**
   - From the first \( 4j + 4 \) numbers, we can get any value from \( 0, 2, \ldots, 4j + 4 \).
   - Subtracting from \( 4j + 5 \), we get values \( 1, 3, \ldots, 4j + 5 \).

2. **For \( n = 4(j+1) + 2 = 4j + 6 \):**
   - From the first \( 4j + 5 \) numbers, we can get any value from \( 1, 3, \ldots, 4j + 5 \).
   - Subtracting from \( 4j + 6 \), we get values \( 1, 3, \ldots, 4j + 5 \).

3. **For \( n = 4(j+1) + 3 = 4j + 7 \):**
   - From the first \( 4j + 6 \) numbers, we can get any value from \( 1, 3, \ldots, 4j + 5 \).
   - Subtracting from \( 4j + 7 \), we get values \( 2, 4, \ldots, 4j + 6 \).
   - To get the value \( 0 \), consider the following pairs:
     - \( (4j + 7, 2j + 4) \rightarrow 2j + 3 \)
     - \( (4j + 6, 2j + 2) \rightarrow 2j + 4 \)
     - \( (4j + 5, 2j + 3) \rightarrow 2j + 2 \)

4. **For \( n = 4(j+1) + 4 = 4j + 8 \):**
   - From the first \( 4j + 7 \) numbers, we can get any value from \( 0, 2, \ldots, 4j + 6 \).
   - Subtracting from \( 4j + 8 \), we get values \( 2, 4, \ldots, 4j + 8 \).
   - To get the value \( 0 \), consider the pair \( (4j + 8, 2j + 4) \rightarrow 2j + 4 \).

By induction, the possible values for \( n = 50 \) are \( 0, 2, 4, \ldots, 50 \).

The final answer is \( \boxed{0, 2, 4, \ldots, 50} \).