let s be Real_Sequence; :: thesis: ( ( for n being Element of NAT holds s . n = n |^ 2 ) implies for n being Element of NAT holds (Partial_Sums s) . n = ((n * (n + 1)) * ((2 * n) + 1)) / 6 )
assume A1: for n being Element of NAT holds s . n = n |^ 2 ; :: thesis: for n being Element of NAT holds (Partial_Sums s) . n = ((n * (n + 1)) * ((2 * n) + 1)) / 6
defpred S1[ Element of NAT ] means (Partial_Sums s) . $1 = (($1 * ($1 + 1)) * ((2 * $1) + 1)) / 6;
(Partial_Sums s) . 0 = s . 0 by SERIES_1:def 1
.= 0 |^ 2 by A1
.= ((0 * (0 + 1)) * ((2 * 0 ) + 1)) / 6 by NEWTON:16 ;
then A2: S1[ 0 ] ;
A3: for n being Element of NAT st S1[n] holds
S1[n + 1]
proof
let n be Element of NAT ; :: thesis: ( S1[n] implies S1[n + 1] )
assume (Partial_Sums s) . n = ((n * (n + 1)) * ((2 * n) + 1)) / 6 ; :: thesis: S1[n + 1]
then (Partial_Sums s) . (n + 1) = (((n * (n + 1)) * ((2 * n) + 1)) / 6) + (s . (n + 1)) by SERIES_1:def 1
.= (((n * (n + 1)) * ((2 * n) + 1)) / 6) + ((n + 1) |^ 2) by A1
.= (((n * (n + 1)) * ((2 * n) + 1)) + (((n + 1) |^ 2) * 6)) / 6
.= ((((n + 1) * n) * ((2 * n) + 1)) + (((n + 1) * (n + 1)) * 6)) / 6 by WSIERP_1:2 ;
hence S1[n + 1] ; :: thesis: verum
end;
for n being Element of NAT holds S1[n] from NAT_1:sch 1(A2, A3);
hence for n being Element of NAT holds (Partial_Sums s) . n = ((n * (n + 1)) * ((2 * n) + 1)) / 6 ; :: thesis: verum