You are a chemist. Please follow the instructions to convert the structure to the corresponding name.
system
For the molecule named 2-[(6aR,10aS)-10a-methoxy-4,7-dimethyl-6a,8,9,10-tetrahydro-6H-indolo[4,3-fg]quinolin-9-yl]-5-(5-bromopyridin-3-yl)-1,3,4-oxadiazole by IUPAC nomenclature, provide its molecular formula.
user
C24H24BrN5O2
assistant