"Studentersang (Herskere i Śndens rige)" [Danish title] is number 1635 in the Hans Christian Andersen Center's register of Andersen's literary works, i.e. no. 135 in the category poems (the range 1501 - 2900). BFN 149.
"Studentersang (Herskere i Śndens rige)" [Danish title] was first published 14 February 1831. Further information: Digterens danske Vśrker 1822-1875 number 149.
In modern Danish on p. 315 in Johan de Mylius (editor): H.C. Andersen. Samlede digte ('Collected poems', Copenhagen, 2000).