function j = pocet_presunu(n)
j = 1;
for i = 1:n-1
    j = 2*j + 1;
end