$<.map{|s|1.upto(n=s.to_f*2+1){|i|a=[0]*n a[i]&&=i.*n.to_i-i puts a*" "}}