"Great-Grandfather" is number 189 in the Hans Christian Andersen Center's register of Andersen's literary works, i.e. no. 189 in the category fairy tale (the range 1 - 300).
"Great-Grandfather" was first published in English August 1870, cf. the bibliographic description (in Danish) in : H.C. Andersen-Centrets bibliografiske optegnelser:
(Bibliografisk kilde: HCAH )
The first Danish edition (September 1870): Oldefa'er.
The work was published later (30 March 1872) as a part of Nye Eventyr og Historier. Tredie Række. Ny [første] Samling. 1872 [Danish title]. (Number 335. BFN 1017. Category/genre: Fairy tale collection).