Autocorrelation Function of Exponential Sequence

Determine c analytically to check the correctness of the result. Use a larger sample rate to simulate a continuous situation. The autocorrelation function of the sequence x(n)=an for n≥0, with |a|<1, is