function [x] = seq2(np,a,n)

% Essay One - Investigation One and Two
% np is the number of partition of the interval (0,1)
% x1 is the initial value of the sequence
% n is the number of the terms of the sequence

t=1/np;
for j=0:np
x(1)=j*t;
    for i=2:n
    x(i)=a*x(i-1)*(1 - x(i-1));
    end
subplot(3,3,j+1)
plot(x)
end
