"Pantalones vise (Morlille sidder med briller pĺ)" [Danish title] is number 1761 in the Hans Christian Andersen Center's register of Andersen's literary works, i.e. no. 261 in the category poems (the range 1501 - 2900).
"Pantalones vise (Morlille sidder med briller pĺ)" [Danish title] was first published 26 October 1832.
In modern Danish on p. 473 in Johan de Mylius (editor): H.C. Andersen. Samlede digte ('Collected poems', Copenhagen, 2000).