You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
For the molecule named 3-[[[hydroxy-[3-methyl-6-[6-(4-methylpiperazin-1-yl)pyridin-3-yl]-1-propan-2-ylindol-4-yl]methyl]amino]methyl]-4,6-dimethyl-1H-pyridin-2-one by IUPAC nomenclature, provide its molecular formula.
user
C31H40N6O2
assistant