Resumation of Divergent series

How is this made?..in fact from having infinites you sum them and have a finite number...i do not know how you can do it..what techniques of maths are used.and if this would be valid for making any series convergent or have a finite number...i think you use divergent series math theories..could someone explain me how to resumate divergent series?..thanks.