Sha256: ac7ff69e06acffbe80f721cd3a9ba88328b697d845b9730f9f6a2dda0c3ffc44

Contents?: true

Size: 176 Bytes

Versions: 4

Compression:

Stored size: 176 Bytes

Contents

# coding: utf-8
class Integer
  def betrothed?(m)
    σ == m.σ and consecutive?(σ - m)
  end
  alias :quasi_amicable? :betrothed?
  alias :reduced_amicable? :betrothed?
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
numb-0.152.0 lib/numb/betrothed.rb
numb-0.138.0 lib/numb/betrothed.rb
numb-0.125.0 lib/numb/betrothed.rb
numb-0.114.0 lib/numb/betrothed.rb