Replying to this post.

.@danwrong require 'mathn' overrides the divide operator to return Rationals, so if a gem in your app loops while n/2 > 0 … fun!