class Integer def centered_triangular? centered_n_gonal?(3) end end