When the cost of living climbs faster than wages, the lottery stops being a game and starts looking like a financial strategy. We dissect the math behind the madness.