Distinct powers a range of values