I've the following formula:

```
(x^6+x^4+x^2+x+1)(x^7+x+1)
= x^13+x^11+x^9+x^8+x^7+
x^7+x^5+x^3+x^3+x^2+x+
x^6+x^4+x^2+x+1
= x^13+x^11+x^9+x^8+2x^7+x^6+x^5+x^4+2x^3+2x^2+2x+1
```

Putting this in OpenOffice.org Math causes every line be concatenated, which I want to avoid. I've already tried putting `newline`

between the lines, but it adds a strange question mark in the formula. Using matrices did not work for me either.

I want to achieve a nicely formatted formula like this one (taken from FIPS 197 pdf):