Integer representation of sets