This question already has an answer here:
In a book or article, how should I reference a helpful reply on mathoverflow? Can I give the web reference to the question? If so, in what form? I would rather do this than the catch all `personal communication', which is never very helpful and also does not acknowledge the role of mathoverflow itself.