Let $p$ denote an odd prime and let $k \geq 1$ be a positive integer.
(a) Prove that there is only one primitive Pythagorean triple $(a, b, c)$ with $a = p^k$.
(b) Prove that there are exactly $k$ (not necessarily primitive) Pythagorean triples of the form $(a, b, c)$, where $a = p^k$.
Since $p$ is an odd prime, $p^k$ is odd as well. By Pythagoras'rule, if $a$ is an odd number, then there exists $(a,\frac{a^2-1}{2},\frac{a^2+1}{2})$. Thus, your Pythagorean triple is: $(p^k,\frac{P^{2k}-1}{2},\frac{p^{2k}+1}{2})$ and it is primitive.
PS: Notes for Fleabood's proof:
By Fleabood's reasoning above, since we have $j = c-b$ and $k = c+b $, there should be two natural numbers $m$ and $l$ such that $m + l = 2k$, hence $p^{2k} = (c-b)(c+b) = jk$ where $j = c-b = p^m$ and $k = c+b = p^l$.
Thus, there exists a series of Pythagorean triples $(a,b,c)$ where $a=p^k$, $b = \frac {p^m - p^l}2$ and $c = \frac {p^m + p^l}2$. As pointed above, if $l < m$, $l$ may be anything for $0$ to $k-1$ and $m$ will be $2k - l$, so there are precisely $k$ such triplets (see above).
Suppose $m=l+x$ since $m$ and $l$ are natural numbers and $m\gt l$. Thus, $p^m=p^{l+x}=p^lp^x$ and $p^{2k}=p^{l+m}=p^{l+l+x}=p^{2l+x}=p^{2l}p^x$. When substitute these values for Pythagorean triples $(a,b,c)$, we have: $$a^2+b^2=c^2$$ $$p^{2k}+\left(\frac {p^m - p^l}2\right)^2=\left(\frac {p^m + p^l}2\right)^2$$ $$p^{2l}p^x+\left(\frac {p^lp^x - p^l}2\right)^2=\left(\frac {p^lp^x + p^l}2\right)^2$$ $$p^{2l}p^x+p^{2l}\left(\frac {p^x - 1}2\right)^2=p^{2l}\left(\frac {p^x + 1}2\right)^2$$ Thus, these Pythagorean triples are not primitive. Overall, it proves that only one primitive Pythagorean triple, $(p^k,\frac{P^{2k}-1}{2},\frac{p^{2k}+1}{2})$, exists with $a=p^k$ (the odd leg). The rest of the triples, $(p^k,\frac{P^m-p^l}{2},\frac{p^m+p^l}{2})$,with $a=p^k$ in the series are non-primitive.