r: real; d: real; begin r := floor(n / 7); d := r * 7; f := n - d end; { f } function g(n: integer): real; function expt(k, n: integer): real; var i: integer; r: real; begin r := 1; for i := 1 to n do r := r * k; expt := r end; var k: integer; a: real; begin a := 0; for k := 1 to 7 do a := a + expt(k, n); g := 3 * f(a) end; { g } var i: integer; begin for i := 1 to 11 do writeln(g(i)) end. Pascal