N = 10000;

n = 0;
for i = N:-1:1
n = n + 1/sqrt(factorial(i));
end