function [n,percR]=percentuale(lambdaV,perc)
    s=sum(lambdaV);
    n=1;
    percR=0;
    while(1)        
        if perc<=percR
            break
        end
        percR=sum(lambdaV(1:n))/s;
        n=n+1;
    end
end