class Motif: # ... def est_ponctuel(self): m = self.num() return m > 0 and m & m-1 == 0