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-a[1,3]*a[2,2]*a[3,4]*a[4,5]....
Жалко, что вся функця не поместилась.
Найдено здесь. http://bbi-math.narod.ru/rosenbrock/rosenbrock.html
Там автор показывает мастерство владения циклами и рекурсиями. А так же демонстрирует каменную выдержку и самообладание, при наборе такого кода.