If I recall correctly... my very first post on Reddit was doing calculations for a (practically immortal) person eating beans and storing the flatus for a trip to the moon (searching shows that this is a not-infrequent request). It was only concerned with quantity - not storage or the engine.
... and the source document for the numbers was based on a paper that is fairly easy to find given the proper keywords in google search... https://pubmed.ncbi.nlm.nih.gov/1648028/ (and I learned that methane more rare in flatus than not).