For the specific signal , where u[n] is the unit step function (meaning u[n]=1 for n≥0 and u[n]=0 for n<0), the sum starts from n=0:
This is a geometric series. A geometric series converges to 1/(1-r) if ∣r∣<1. In our case, . The series converges when . Since for any real ω, this condition simplifies to ∣a∣<1. If this condition is met, the sum of the series is:
a = 0.8; % Choose a value for 'a' such that |a| < 1.0
N = 50;
omega = -pi:0.01:pi;
% 1. Generate the discrete-time signal x[n] = a^n u[n]