You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
For the molecule named methyl 2-(1-methylindol-3-yl)-2-piperidin-1-ylacetate by IUPAC nomenclature, provide its molecular formula.
user
C17H22N2O2
assistant