function output=exponential_model(P_0,k,n)
%This function takes as input an initial value (P_0), the growth parameter (k), and a length (n)
%and returns the model values of length n starting at P_0 with P_n=kP_(n-1) 

output=zeros(1,n+1);
output(1)=P_0;
for i=1:n
    output(i+1)=output(i)+k*output(i);
end

    

