You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
For the molecule named 5-[4-(4-methylpiperazin-1-yl)phenyl]-N-[3-(2-oxopyrrolidin-1-yl)propyl]pyridine-3-carboxamide by IUPAC nomenclature, provide its molecular formula.
user
C24H31N5O2
assistant