Lm1:
for n being Nat holds [\(((2 * n) + 1) / 2)/] = n
Lm2:
for n being Nat holds [/(((2 * n) + 1) / 2)\] = n + 1
Lm3:
for x, y being Integer
for D being Nat holds
( (x ^2) - (D * (y ^2)) = 1 iff [x,y] is Pell's_solution of D )
Lm4:
for k being Nat
for a being non trivial Nat st Py (a,k) = 0 holds
k = 0
Lm5:
for n being Nat
for r being Real st 0 <= 1 - r & 1 - r <= 1 holds
(1 - r) |^ n >= 1 - (n * r)
theorem Th25:
for
x,
y being
Integer for
a being non
trivial Nat holds
(
Px (
a,
|.(x + y).|)
= ((Px (a,|.x.|)) * (Px (a,|.y.|))) + ((((((a ^2) -' 1) * (sgn x)) * (Py (a,|.x.|))) * (sgn y)) * (Py (a,|.y.|))) &
(sgn (x + y)) * (Py (a,|.(x + y).|)) = (((Px (a,|.x.|)) * (sgn y)) * (Py (a,|.y.|))) + (((sgn x) * (Py (a,|.x.|))) * (Px (a,|.y.|))) )
Lm6:
for x being Integer
for a being non trivial Nat holds ((sgn x) * (sgn x)) * (Py (a,|.x.|)) = Py (a,|.x.|)
Lm7:
for a being non trivial Nat
for i, j being Integer holds (sgn ((4 * i) + j)) * (Py (a,|.((4 * i) + j).|)),(sgn j) * (Py (a,|.j.|)) are_congruent_mod Px (a,|.i.|)
Lm8:
for r1, r2 being Real st |.r1.| < r2 holds
( - r2 < r1 & r1 < r2 )
Lm9:
for n, n1, n2 being Nat
for x, y being Integer
for a being non trivial Nat st n1 < n2 & n2 <= 2 * n & |.x.| = Py (a,n1) & |.y.| = Py (a,n2) & x,y are_congruent_mod Px (a,n) holds
n1 = (2 * n) - n2
Lm10:
for n, n1, n2 being Nat
for x, y being Integer
for a being non trivial Nat st n1 <= 2 * n & 2 * n < n2 & n2 <= 4 * n & |.x.| = Py (a,n1) & |.y.| = Py (a,n2) & x,y are_congruent_mod Px (a,n) & not n1,n2 are_congruent_mod 2 * n holds
n1, - n2 are_congruent_mod 2 * n
Lm11:
for n, n1, n2 being Nat
for x, y being Integer
for a being non trivial Nat st 2 * n < n1 & n1 <= 4 * n & 2 * n < n2 & n2 <= 4 * n & |.x.| = Py (a,n1) & |.y.| = Py (a,n2) & x,y are_congruent_mod Px (a,n) & not n1,n2 are_congruent_mod 2 * n holds
n1, - n2 are_congruent_mod 2 * n
theorem
for
y,
z,
a being
Nat holds
( (
y = Py (
a,
z) &
a > 1 ) iff ex
x,
x1,
y1,
A,
x2,
y2 being
Nat st
(
a > 1 &
[x,y] is
Pell's_solution of
(a ^2) -' 1 &
[x1,y1] is
Pell's_solution of
(a ^2) -' 1 &
y1 >= y &
A > y &
y >= z &
[x2,y2] is
Pell's_solution of
(A ^2) -' 1 &
y2,
y are_congruent_mod x1 &
A,
a are_congruent_mod x1 &
y2,
z are_congruent_mod 2
* y &
A,1
are_congruent_mod 2
* y &
y1,
0 are_congruent_mod y ^2 ) )
theorem
for
x,
y,
z being
Nat holds
(
y = x |^ z iff ( (
y = 1 &
z = 0 ) or (
x = 0 &
y = 0 &
z > 0 ) or (
x = 1 &
y = 1 &
z > 0 ) or (
x > 1 &
z > 0 & ex
y1,
y2,
y3,
K being
Nat st
(
y1 = Py (
x,
(z + 1)) &
K > (2 * z) * y1 &
y2 = Py (
K,
(z + 1)) &
y3 = Py (
(K * x),
(z + 1)) & ( (
0 <= y - (y3 / y2) &
y - (y3 / y2) < 1
/ 2 ) or (
0 <= (y3 / y2) - y &
(y3 / y2) - y < 1
/ 2 ) ) ) ) ) )