Suppose you are doing a research project in math, and one of the people on MathOverflow gives you a key idea that helped you finish a proof of a theorem. Now you are writing this proof up and submitting it to a journal. What is the best way to acknowledge their contribution? Do you mention them in the acknowledgements? Try to contact them and offer them coauthorship? What if they're anonymous?