Let $d(n)$ denote the number of positive divisors of $n$.  Find all triples $(n,k,p)$, where $n$ and $k$ are positive integers and $p$ is a prime number, such that
\[n^{d(n)} - 1 = p^k.\]
1. **Case 1: \( n = 2 \)**
   - We start by substituting \( n = 2 \) into the given equation:
     \[
     2^{d(2)} - 1 = p^k
     \]
   - The number of positive divisors of 2, \( d(2) \), is 2. Therefore, the equation becomes:
     \[
     2^2 - 1 = p^k \implies 4 - 1 = p^k \implies 3 = p^k
     \]
   - Since 3 is a prime number, we have \( p = 3 \) and \( k = 1 \). Thus, the triple \((n, k, p) = (2, 1, 3)\) satisfies the condition.

2. **Case 2: \( n \geq 3 \)**
   - If \( d(n) \neq 2 \), by **Zsigmondy's theorem**, there exists a prime \( q \) such that \( q \mid n^{d(n)} - 1 \) and \( q \nmid n - 1 \). Since \( n - 1 \mid n^{d(n)} - 1 \), this leads to a contradiction. Hence, \( d(n) = 2 \).
   - If \( d(n) = 2 \), then \( n \) must be a prime number. Let \( n = p \). The equation becomes:
     \[
     p^{d(p)} - 1 = p^k \implies p^2 - 1 = p^k
     \]
   - We can factorize \( p^2 - 1 \) as:
     \[
     p^2 - 1 = (p - 1)(p + 1)
     \]
   - Since \( (p - 1)(p + 1) = p^k \), and \( p \) is a prime number, we need to find \( p \) such that both \( p - 1 \) and \( p + 1 \) are powers of \( p \). Let \( p - 1 = p^t \) and \( p + 1 = p^s \) with \( s > t \geq 0 \):
     \[
     \left\{
     \begin{array}{l}
     p + 1 = p^s \\
     p - 1 = p^t
     \end{array}
     \right.
     \]
   - Subtracting these two equations, we get:
     \[
     (p + 1) - (p - 1) = p^s - p^t \implies 2 = p^t(p^{s-t} - 1)
     \]
   - If \( t = 0 \), then:
     \[
     2 = p^0(p^s - 1) \implies 2 = p^s - 1 \implies p^s = 3
     \]
     - This implies \( p = 3 \) and \( s = 1 \), but this contradicts \( n \geq 3 \). Therefore, \( t \geq 1 \).
   - If \( t \geq 1 \), then \( p = 2 \) and \( t = 1 \):
     \[
     2 = 2^1(2^{s-1} - 1) \implies 2 = 2(2^{s-1} - 1) \implies 1 = 2^{s-1} - 1 \implies 2^{s-1} = 2 \implies s - 1 = 1 \implies s = 2
     \]
   - Therefore, \( n = 3 \), \( k = 3 \), and \( p = 2 \). The triple \((n, k, p) = (3, 3, 2)\) satisfies the condition.

From both cases, the answer is:
\[
\boxed{(n, k, p) = (2, 1, 3), (3, 3, 2)}
\]