big-oh.rb
# run test for first few numbers
# take the output and plug into OEIS.org to get the formula!
#
# in OS X Terminal, double-clicking on the comma-separated string will select
# it nicely for Cmd-C ;)
run test for first few numbers
take the output and plug into OEIS.org to get the formula!

in OS X Terminal, double-clicking on the comma-separated string will select
it nicely for Cmd-C ;)
run test for first few numbers take the output and plug into OEIS . org to get the formula! in OS X Terminal double - clicking on the comma - separated string will select it nicely for Cmd - C ; )
def bigOh
  iterations = 6
  1.upto(iterations) { |n| print methodA(n).to_s + (n != iterations ? "," : "") }
  puts
end
def bigOh iterations = 6 1 . upto ( iterations ) { | n | print methodA ( n ) . to_s + ( n != iterations ? "," : "" ) } puts end
run test for first few numbers
take the output and plug into OEIS.org to get the formula!
run test for first few numbers take the output and plug into OEIS . org to get the formula!