The equation that represents the formation of rust, specifically iron(III) oxide, when oxygen reacts with iron can be written as:
4 Fe + 3 O2 → 2 Fe2O3.
In this reaction, iron (Fe) combines with oxygen (O2) to form iron(III) oxide (Fe2O3), which is commonly known as rust.