How to represent exponential function as a some mathematical series?

71 Views Asked by At

I want to implement the following function in the Matlab:

$Y = \sum\limits_{i=0}^{N} e^{(-i^n.B)}$

Where $n$ and $B$ are the constants.

When the value of $N$ is very very large, the equation takes a significant amount of computation time. Is there any way that I can represent this equation as some mathematical series, and then using formula for summation of the first $N$ terms of the series can quickly give the $Y$ as like in geometric series?

Kindly help. Thank you.