You have the protocol a bit confused. At initial application of power you get three chances to enter the code immediately. If you don't manage to get it right, the radio will have to be powered up for an hour before it will permit three more attempts. It doesn't matter if you remove power after the three failed attempts, you will have to wait that hour.
Just leave the radio powered up while you use the car until you think it's been on for an hour. Then, next time you switch the ignition on, carefully enter the correct code. It ought to work.