lib/numb/betrothed.rb in numb-0.111.0 vs lib/numb/betrothed.rb in numb-0.114.0
- old
+ new
@@ -1,8 +1,8 @@
# coding: utf-8
class Integer
def betrothed?(m)
- σ == m.σ and σ == self.succ + m
+ σ == m.σ and consecutive?(σ - m)
end
alias :quasi_amicable? :betrothed?
alias :reduced_amicable? :betrothed?
end