Euler's triangle challenge solved in python and ruby.