I am trying to make my own command to calculate geometric sequence in LaTeX example: 10*4^(n+1)
I've tried couple of things similar to this but non of them seemed to work:
\newcommand{\GeometricSequence} [1] {\the\numexpr 10*4^(#1+1) \relax \\}
So if type command (shown below) it should "print" 3360.
\GeometricSequence {3}
Best Answer
Up to 24 because of floating point precision limitation.