Ruby Playground - Tetrahedral numbers: Online Interpreter, Compiler & Editor | Sololearn