Fix an integer $n \geq 2$ and let $a_1, \ldots, a_n$ be integers, where $a_1 = 1$. Let
$$ f(x) = \sum_{m=1}^n a_mm^x. $$  Suppose that $f(x) = 0$ for some $K$ consecutive positive integer values of $x$. In terms of $n$, determine the maximum possible value of $K$.
1. **Initial Setup and Problem Restatement:**
   We are given an integer \( n \geq 2 \) and integers \( a_1, a_2, \ldots, a_n \) with \( a_1 = 1 \). The function \( f(x) \) is defined as:
   \[
   f(x) = \sum_{m=1}^n a_m m^x
   \]
   We need to determine the maximum possible value of \( K \) such that \( f(x) = 0 \) for \( K \) consecutive positive integer values of \( x \).

2. **Verification of \( K = n-1 \):**
   First, we show that \( K = n-1 \) is possible. Consider the identity:
   \[
   \sum_{m=1}^{n} (-1)^m \binom{n}{m} m^x = 0 \quad \text{for} \quad x = 1, 2, \ldots, n-1
   \]
   This identity can be proven using the principle of inclusion-exclusion on the sets \( A_i \), which count the number of ways to create a string of \( x \) characters from an alphabet of \( n \) characters, excluding the \( i \)-th character.

3. **Matrix Representation and Singularity:**
   Suppose \( K = n \) is possible, meaning \( f(x) = 0 \) for \( x = y+1, y+2, \ldots, y+n \). This implies:
   \[
   \begin{pmatrix}
   1^{y+1} & 2^{y+1} & \cdots & n^{y+1} \\
   1^{y+2} & 2^{y+2} & \cdots & n^{y+2} \\
   \vdots & \vdots & \ddots & \vdots \\
   1^{y+n} & 2^{y+n} & \cdots & n^{y+n}
   \end{pmatrix}
   \begin{pmatrix}
   a_1 \\
   a_2 \\
   \vdots \\
   a_n
   \end{pmatrix}
   =
   \begin{pmatrix}
   0 \\
   0 \\
   \vdots \\
   0
   \end{pmatrix}
   \]
   This matrix is a Vandermonde matrix, which is known to be non-singular if all \( m_i \) are distinct. Therefore, the above matrix is singular, leading to a contradiction.

4. **Polynomial Argument:**
   If the matrix is singular, its transpose is also singular. Thus, there exist rational numbers \( b_1, b_2, \ldots, b_n \), not all zero, such that:
   \[
   \begin{pmatrix}
   1^{y+1} & 1^{y+2} & \cdots & 1^{y+n} \\
   2^{y+1} & 2^{y+2} & \cdots & 2^{y+n} \\
   \vdots & \vdots & \ddots & \vdots \\
   n^{y+1} & n^{y+2} & \cdots & n^{y+n}
   \end{pmatrix}
   \begin{pmatrix}
   b_1 \\
   b_2 \\
   \vdots \\
   b_n
   \end{pmatrix}
   =
   \begin{pmatrix}
   0 \\
   0 \\
   \vdots \\
   0
   \end{pmatrix}
   \]
   This implies that the polynomial \( p(t) = \sum_{m=1}^n b_m t^{y+m} \) has roots at \( t = 1, 2, \ldots, n \). However, this polynomial has degree at most \( y+n \), which is a contradiction since it cannot have more roots than its degree.

5. **Conclusion:**
   Therefore, \( K = n-1 \) is the maximum possible value of \( K \).

The final answer is \( \boxed{ K = n-1 } \)