Starts and dies for first three times

the weird thing it did was definitely something electrical going on. no crank, no fire, no lights on when i opened the door nothing. I cleaned up the battery posts this morning assuming that was the problem, but that doesn't seem to be the same problem as the "takes three times to start" issue. but now with clean posts I can eliminate that being the problem tomorrow morning when i try to start it again!