>>2527496>>2527559>1 or 2 nightsThe number of nights isn’t nearly as pertinent as the length that’s being hiked (and ostensibly the difficulty of the hike, which varies by terrain and the hiker). If you plan on 20 mile days, canned food isn’t the best option. If you’ve never been hiking and spend most of your time jerking off to anime and playing video games (ie, the 4Chan demographic), the hike will be more difficult.
A can of beans weighs over a pound and contains under 400 calories. The Skurka recipes that Anon linked to are around 6oz and over 650 calories. They also taste better than a can of beans.
Then again, Bush’s Beans Babe ate canned beans during her entire AT thruhike.