I think it should be ' a mixed number'. I would consider 'as' in both cases as prepositions, and the prepositional phrases ('as a mixed number', 'as decimals') as adverbial modifiers of 'write', as is 'then'.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.