RUBY :: inject and sum :: EULER