User blog:DrCocktor/My New Factorial Function

A(1) = 1

A(2) = 2^2 + 1^2

A(3) = 3^3 * 2^3 * 1^3

A(4) = (4^4)^(3^4)^(2^4)^(1^4)