i'm writting a script with an outer loop and two inner loop, i must not be correctly typing out the syntax but i want to write an expression for my first inner loop where i raise $2 to the power of j + 1: $2^(j+1)
This is not a complete script:
for((d=0;d<=($2**($j+1));d++)) <----
do
done
What is the proper way to write such an expression in a for loop?