generating pentagonal numbers for 44 in ruby