Test  Status  Code Input and Output 

1  Pass 
n = 1;
t = 1;
assert(isequal(triangle(n),t))
y =
1

2  Pass 
n = 3;
t = 6;
assert(isequal(triangle(n),t))
y =
1
y =
3
y =
6

3  Pass 
n = 5;
t = 15;
assert(isequal(triangle(n),t))
y =
1
y =
3
y =
6
y =
10
y =
15

4  Pass 
n = 30;
t = 465;
assert(isequal(triangle(n),t))
y =
1
y =
3
y =
6
y =
10
y =
15
y =
21
y =
28
y =
36
y =
45
y =
55
y =
66
y =
78
y =
91
y =
105
y =
120
y =
136
y =
153
y =
171
y =
190
y =
210
y =
231
y =
253
y =
276
y =
300
y =
325
y =
351
y =
378
y =
406
y =
435
y =
465

Return a list sorted by number of occurrences
1282 Solvers
187 Solvers
Who has power to do everything in this world?
261 Solvers
1400 Solvers
217 Solvers