Sha256: bb839309c4e29d90fd2bd17600d9949b036f3aa2ebcd158dde6a9aba821a3a9a
Contents?: true
Size: 445 Bytes
Versions: 6
Compression:
Stored size: 445 Bytes
Contents
# coding: utf-8 describe Integer, "#σ∞" do # A049417 @seq = [1,3,4,5,6,12,8,15,10,18,12,20,14,24,24,17,18,30, 20,30,32,36,24,60,26,42,40,40,30,72,32,51,48,54, 48,50,38,60,56,90,42,96,44,60,60,72,48,68,50,78, 72,70,54,120,72,120,80,90,60,120,62,96,80,85,84, 144,68,90] @seq.to_enum.with_index(1).each do |sum, n| it "returns #{sum} for #{n}" do n.σ∞.should == sum end end end
Version data entries
6 entries across 6 versions & 1 rubygems