+ 2

How to print this output form in python? 1 5 15.....

1,(2+3),(4+5+6),(7+8+9+10),.....

31st Dec 2018, 2:48 AM
Muralikrishnan
Muralikrishnan - avatar
2 Answers
31st Dec 2018, 3:06 AM
InvBoy [ :: FEDE :: ]
InvBoy [ :: FEDE :: ] - avatar
+ 16
((n^3)+n)/2 //mathematically, we just need to print terms of this form â˜ș👍
31st Dec 2018, 4:27 AM
Gaurav Agrawal
Gaurav Agrawal - avatar