Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
I can’t say how it looks in Pascal, I don’t have a compiler at hand, but in Python it’s something like this:
x = 3
n = 4
xn = x
# (1 + 1)
sum = 2
for i in range(2, (2 * n + 1)):
xn *= x
sum *= (1 + xn)
program hello;
var
x, n, xn, i: integer;
sum: int64;
begin
x := 3;
n := 4;
sum := 2;
xn := x;
for i := 2 to (2 * n) do
begin
xn := xn * x;
sum := sum * (1 + xn);
writeln(sum);
end;
writeln(sum);
readln();
end.
Multiply the entered n by two, raise the number to this power. It is no different from raising to any other power.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question