Part of something I'm doing at the moment results in the equation
$3k^2 + 3k + 1 = w^3$
where $k$ and $w$ are positive integers. From inspection it seems that the only integer solutions to this are the trivial pairs $(k,w) = (0,1)$, $(k,w)=(-1,1)$. This is fine, but I think I should be able to prove that these are the only possible solutions. I do not however know how to proceed - I note that the above equation can be written as
$6M + 1 = w^3$
where $M \geq 0$. Manipulating this identity, I can show that $w = 6Q +1$ but I'm not sure that helps me. Any ideas how once can proceed with this kind of proof, or is there an obvious reason why only the trivial solutions can satisfy the equation?