Why Thanos Was Actually Right, The Math Behind His Plan