主题:尼科彻斯问题
program nkcs;
var
i,j:integer;
n,t:longint;
begin
j:=3;
readln(n);
writeln(n,'*,n,'*',n,'=',(n-1)*n+1);
for i:=1 to n-1 do
begin
t:=(n-1)*n+j;
j:=j+2;
write('+',t);
end;
end.
var
i,j:integer;
n,t:longint;
begin
j:=3;
readln(n);
writeln(n,'*,n,'*',n,'=',(n-1)*n+1);
for i:=1 to n-1 do
begin
t:=(n-1)*n+j;
j:=j+2;
write('+',t);
end;
end.