Assuming you have the N42 engine i'd say this is what you want:
http://m.mister-auto.ie/en/coolant-thermostat/bmw-3-e46-318-i-143hp_v16198_g316.html