uses crt;
var x, r, i:Double;
n:LongInt
begin
readln(x, n);
r := 1;
for i:=1 to n do result := r+(power(x, n)+i*n)/i;
writeln(r);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
uses crt;
var x, r, i:Double;
n:LongInt
begin
readln(x, n);
r := 1;
for i:=1 to n do result := r+(power(x, n)+i*n)/i;
writeln(r);
end.