I've been trying to solve the Schrödinger equation for a particle in a box of volume $V$ (length $L$) with periodic boundary conditions. The general solution for the equation yields, for one dimension, $$ \Psi (x) = A \mathrm{e}^{i k_x x}+B \mathrm{e}^{-i k_x x}.$$ When using $\Psi(0)=\Psi(L)$ and $\Psi'(0)=\Psi'(L)$, I get $$ \begin{cases} A+B = A \mathrm{e}^{i k_x L}+B \mathrm{e}^{-i k_x L} \\ A-B = A \mathrm{e}^{i k_x L}-B \mathrm{e}^{-i k_x L} \end{cases}. $$ Adding both equations yields $\mathrm{e}^{i k_x L}=1 $, so $k_x = \frac{2n \pi}{L}$, which according to this Phys.SE post, is correct.
Now, if I rewrite the boundary conditions with the value found for $k_x$, I end up with no equations from which to obtain $A$ and $B$ (apart, of course, from the normalization of the wave function). All this sounds correct, so I don't really know what I'm missing here.
In Statistical Mechanics, section 5.3, Pathria states that the solution for this problem has the form $$ \Psi(\mathbf{r}) = \left( \frac{1}{L} \right)^{\frac{3}{2}} \mathrm{e}^{i \mathbf{k} \cdot \mathbf{r}}. $$