「回文基数」をErlangとRubyで(横へな17参考) ref: http://qiita.com/pazworld/items/3b936680585b60ad82c3