I followed the instructions in the owner manual for programming a new fob when mine ended up as FOB 3. Inserting that text here (from page 2-6 of the '06 manual):
Matching Transmitter(s) to Your Vehicle
Each keyless access transmitter is coded to prevent another transmitter from working with your vehicle. If a transmitter is lost or stolen, a replacement can be purchased through your dealer. Remember to bring anyremaining transmitters with you when you go to your dealer. Once your dealer has coded the new transmitter,the lost transmitter will not work with your vehicle. Each vehicle can have a maximum of four transmittersmatched to it.To match a new transmitter to your vehicle when you have a recognized transmitter, do the following:
1. The vehicle must be off.
2. Have the recognized and new, unrecognized transmitters on your person.
3. Go to the rear of the vehicle and insert the vehicle key into the key cylinder located on the lower rear fascia on the driver’s side of the vehicle. SeeTrunkon page 2-12for more information on the keycylinder.
4. Open the trunk.
5. Turn the key five times within five seconds.
6. The Driver Information Center (DIC) will display READY FOR FOB #X. X can be 2, 3 or 4.
7. Place the new, unrecognized transmitter in the glove box transmitter pocket with the buttons facing to the right.
8. Once the transmitter is programmed, a beep will sound. The DIC will display READY FOR #X,where X can be 3 or 4, or MAX # FOBS LEARNED.
9. Press the ACC button