Part 36 in the ongoing weirdness that is Hermione telling the boys fairy tales.
( In which the trio comes up with alternate plans, there is an infinitesimally tiny crossover with something I brought up in Chapter 21 of Shadowed Lives, and the sexist problems of genie/lamp ownership are discussed )