Sha256: f960598a0cfc01c9ad582ee81520a6381da0bf440afd44eb56e5395a4064c0d2
Contents?: true
Size: 193 Bytes
Versions: 1
Compression:
Stored size: 193 Bytes
Contents
# coding: utf-8 class Integer def multiamicable?(m, a, b) return false unless m != self and m < self and a.positive? and b.positive? m.σ - m == a*self and σ - self == b*m end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
numb-0.152.0 | lib/numb/multiamicable.rb |