Implement the triangle-nums sequence