:: Elementary Number Theory Problems. Part {XVII}
:: by Artur Korni{\l}owicz and Adam Naumowicz
::
:: Received December 12, 2025
:: Copyright (c) 2025-2026 Association of Mizar Users
:: (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 4.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/4.0/.
environ
vocabularies NUMBERS, NAT_1, RELAT_1, FUNCT_1, XXREAL_0, ARYTM_3, XCMPLX_0,
CARD_1, INT_1, NEWTON, ARYTM_1, SUBSET_1, XBOOLE_0, TARSKI, FINSET_1,
ABIAN, MEMBERED, REAL_1, INT_2, NUMBER03, SQUARE_1, ZFMISC_1, ORDINAL4,
NAT_LAT, RAT_1, FINSEQ_3, FINSEQ_1, CARD_3, VALUED_0, PARTFUN3, EUCLID_3,
ORDINAL2, FUNCT_7, VALUED_1, NUMBER06, FINSEQ_2, POWER, PRE_POLY,
NUMPOLY1, PEPIN, RVSUM_3, NUMBER02, EULER_1, NUMBER15, NUMBER17, FUNCT_2,
PREPOWER, PBOOLE, RFINSEQ2, CLASSES1, MATRIX_1, FOMODEL1, CAYLEY,
UNIALG_1, AFINSQ_1, FUNCOP_1, NUMERAL1, NAT_3;
notations TARSKI, XBOOLE_0, ZFMISC_1, SUBSET_1, XTUPLE_0, DOMAIN_1, ORDINAL1,
CARD_1, NUMBERS, ENUMSET1, XCMPLX_0, RELAT_1, FUNCT_1, RELSET_1,
PARTFUN1, FUNCT_2, PBOOLE, FINSET_1, MEMBERED, VALUED_0, VALUED_1,
XREAL_0, FUNCOP_1, AFINSQ_1, AFINSQ_2, NAT_D, INT_1, INT_2, XXREAL_0,
CLASSES1, SQUARE_1, FINSEQ_1, PARTFUN3, FINSEQ_2, FINSEQ_3, FINSEQ_4,
AOFA_A00, RVSUM_1, RFINSEQ2, PREPOWER, POWER, NEWTON, ABIAN, PEPIN,
EULER_1, PRE_POLY, RAT_1, NEWTON04, NAT_LAT, NUMPOLY1, RVSUM_3, NAT_3,
NUMERAL1, CAYLEY, NUMBER02, NUMBER03, NUMBER06, NUMBER15;
constructors NAT_D, ABIAN, PEPIN, NUMBER02, NUMBER03, CLASSES1, PYTHTRIP,
RFINSEQ2, POWER, DOMAIN_1, EC_PF_2, NUMBER06, INT_7, CALCUL_2, GROUP_4,
PREPOWER, NEWTON04, EULER_1, RVSUM_3, FINSEQ_4, RVSUM_2, AOFA_A00,
NUMBER15, NUMPOLY1, CAYLEY, RELSET_1, AFINSQ_2, RVSUM_1, SERIES_1,
RFINSEQ, NAT_3, FIB_NUM2, RECDEF_1, ORDINAL5, INT_5, WSIERP_1, POLYEQ_3,
NUMERAL1, PARTFUN3, FUNCT_7, RELAT_1, FUNCT_1, XTUPLE_0, FUNCT_4,
FUNCOP_1, CARD_1, WELLORD2;
registrations ORDINAL1, RELSET_1, FINSET_1, NUMBERS, XCMPLX_0, XXREAL_0,
XREAL_0, NAT_1, INT_1, VALUED_0, CARD_1, NEWTON, NEWTON02, NEWTON03,
ABIAN, NAT_6, JORDAN1D, WSIERP_1, FINSEQ_1, RVSUM_1, PRE_POLY, FUNCT_1,
RELAT_1, XBOOLE_0, SUBSET_1, RAT_1, BINOP_2, NUMBER02, NUMPOLY1,
VALUED_1, PARTFUN3, FINSEQ_9, SQUARE_1, POWER, NUMBER08, NUMBER09,
NEWTON04, COMPLEX3, FINSEQ_2, FOMODEL0, NAT_LAT, NUMBER03, RVSUM_3,
FINSEQ_4, NUMBER10, EUCLID_9, NUMBER15, NEWTON07, FUNCT_2, CAYLEY,
AFINSQ_1, AFINSQ_2, MEMBERED, FUNCOP_1;
requirements REAL, NUMERALS, BOOLE, SUBSET, ARITHM;
begin
reserve A
for set;
reserve a,k,m,n
for Nat;
reserve s
for positive Nat;
reserve i,j
for Integer;
reserve r
for Real;
reserve c,c1,c2,c3,c4,c5,c6,c7,c8
for Complex;
registration
let A
be finite set;
cluster Segm A -> finite;
end;
theorem :: NUMBER17:1
for a,b,c,d
being object
holds dom <*a,b,c,d*> = {
1,
2,
3,
4};
theorem :: NUMBER17:2
for a,b,c,d,e
being object
holds dom <*a,b,c,d,e*> = {
1,
2,
3,
4,
5};
theorem :: NUMBER17:3
for a
being object, A
being set st <*a*>
is A-valued
holds a
in A;
registration
let s
be positive Nat;
let f
be s-element FinSequence;
cluster f|(s-
1) -> (s-
1)-element;
end;
registration
let f
be non empty positive-yielding real-valued FinSequence;
cluster f.
1 -> positive;
end;
theorem :: NUMBER17:4
for f
being s-element complex-valued FinSequence
holds
Sum(f|(s-
1)) = Sum f - f.s;
theorem :: NUMBER17:5
for D
being non empty set
holds
5-tuples_on D =
the set
of all <*d1,d2,d3,d4,d5*>
where d1,d2,d3,d4,d5
is Element
of D;
theorem :: NUMBER17:6
for D
being non empty set
for z
being Tuple
of 5,D
ex d1,d2,d3,d4,d5
being Element
of D st z = <*d1,d2,d3,d4,d5*>;
theorem :: NUMBER17:7
<*c*>^
2 = <*c^
2*>;
theorem :: NUMBER17:8
<*c1,c2*>^
2 = <*c1^
2,c2^
2*>;
theorem :: NUMBER17:9
<*c1,c2,c3*>^
2 = <*c1^
2,c2^
2,c3^
2*>;
theorem :: NUMBER17:10
<*c1,c2,c3,c4*>^
2 = <*c1^
2,c2^
2,c3^
2,c4^
2*>;
theorem :: NUMBER17:11
<*c1,c2,c3,c4,c5*>^
2 = <*c1^
2,c2^
2,c3^
2,c4^
2,c5^
2*>;
theorem :: NUMBER17:12
<*c1,c2,c3,c4,c5,c6*>^
2 = <*c1^
2,c2^
2,c3^
2,c4^
2,c5^
2,c6^
2*>;
theorem :: NUMBER17:13
<*c1,c2,c3,c4,c5,c6,c7*>^
2 = <*c1^
2,c2^
2,c3^
2,c4^
2,c5^
2,c6^
2,c7^
2*>;
theorem :: NUMBER17:14
<*c1,c2,c3,c4,c5,c6,c7,c8*>^
2 = <*c1^
2,c2^
2,c3^
2,c4^
2,c5^
2,c6^
2,c7^
2,c8^
2*>;
theorem :: NUMBER17:15
<*c1,c2,c3,c4*>" = <*c1",c2",c3",c4"*>;
theorem :: NUMBER17:16
<*c1,c2,c3,c4,c5*>" = <*c1",c2",c3",c4",c5"*>;
theorem :: NUMBER17:17
<*c1,c2,c3,c4,c5,c6*>" = <*c1",c2",c3",c4",c5",c6"*>;
theorem :: NUMBER17:18
<*c1,c2,c3,c4,c5,c6,c7*>" = <*c1",c2",c3",c4",c5",c6",c7"*>;
theorem :: NUMBER17:19
<*c1,c2,c3,c4,c5,c6,c7,c8*>" = <*c1",c2",c3",c4",c5",c6",c7",c8"*>;
theorem :: NUMBER17:20
Sum <*c1,c2,c3,c4*> = c1+c2+c3+c4;
theorem :: NUMBER17:21
Sum <*c1,c2,c3,c4,c5*> = c1+c2+c3+c4+c5;
theorem :: NUMBER17:22
Sum <*c1,c2,c3,c4,c5,c6*> = c1+c2+c3+c4+c5+c6;
theorem :: NUMBER17:23
Sum <*c1,c2,c3,c4,c5,c6,c7*> = c1+c2+c3+c4+c5+c6+c7;
theorem :: NUMBER17:24
Sum <*c1,c2,c3,c4,c5,c6,c7,c8*> = c1+c2+c3+c4+c5+c6+c7+c8;
theorem :: NUMBER17:25
m >
1 implies ex n
being positive Nat st m|^(m|^n) > r;
theorem :: NUMBER17:26
for n
being non zero Integer
ex k
being Nat,
j
being odd Integer st n = j *
2|^k;
theorem :: NUMBER17:27
i,j are_congruent_mod j
implies i,
0 are_congruent_mod j;
theorem :: NUMBER17:28
for x,y,n
being Nat st n >
0 & x >= y
holds x,y are_congruent_mod n iff
ex k
being Nat st x = k * n + y;
theorem :: NUMBER17:29
m <= n &
i|^m,i|^(m+k) are_congruent_mod a
implies i|^n,i|^(n+k) are_congruent_mod a;
theorem :: NUMBER17:30
3 divides
2|^(
2*n) -
1;
theorem :: NUMBER17:31
5 divides
2|^(
4*n) -
1;
theorem :: NUMBER17:32
7 divides
2|^(
6*n) -
1;
theorem :: NUMBER17:33
11 divides
2|^(
10*n) -
1;
theorem :: NUMBER17:34
9 divides
2|^(
6*n) -
1;
registration
let F
be rational-valued FinSequence;
cluster Sum F -> rational;
cluster Product F -> rational;
end;
registration
let n
be Nat;
let f
be (n+
1)-element FinSequence;
cluster Del(f,
1) -> n-element;
end;
registration
let D
be set;
let f
be D-valued FinSequence;
let n
be Nat;
cluster Del(f,n) -> D-valued;
end;
registration
let f
be increasing real-valued FinSequence;
let n
be Nat;
cluster Del(f,n) -> increasing;
end;
registration
let f
be decreasing real-valued FinSequence;
let n
be Nat;
cluster Del(f,n) -> decreasing;
end;
registration
let f
be non-increasing real-valued FinSequence;
let n
be Nat;
cluster Del(f,n) -> non-increasing;
end;
registration
let f
be non-decreasing real-valued FinSequence;
let n
be Nat;
cluster Del(f,n) -> non-decreasing;
end;
registration
let m,n
be Nat;
let f
be positive-yielding n-element FinSequence;
cluster Del(f,m) -> positive-yielding;
end;
theorem :: NUMBER17:35
for f,g
being ext-real-valued FinSequence
holds
f^g
is decreasing
implies f
is decreasing & g
is decreasing;
theorem :: NUMBER17:36
for f,g
being ext-real-valued FinSequence
holds
f^g
is non-increasing
implies f
is non-increasing & g
is non-increasing;
theorem :: NUMBER17:37
for f,g
being ext-real-valued FinSequence
holds
f^g
is non-decreasing
implies f
is non-decreasing & g
is non-decreasing;
theorem :: NUMBER17:38
for p,q
being increasing real-valued FinSequence st p.len(p) < q.
1 holds
p ^ q
is increasing;
theorem :: NUMBER17:39
for r1,r2
being Real st r1 < r2
holds <*r1,r2*>
is increasing;
theorem :: NUMBER17:40
for r1,r2,r3
being Real st r1 < r2 < r3
holds <*r1,r2,r3*>
is increasing;
theorem :: NUMBER17:41
for r1,r2,r3,r4
being Real st r1 < r2 < r3 < r4
holds
<*r1,r2,r3,r4*>
is increasing;
registration
let n
be Nat;
cluster increasing positive-yielding n-element
for natural-valued FinSequence;
end;
theorem :: NUMBER17:42
for f
being positive-yielding real-valued FinSequence st len f >=
2
for k
being Nat st k
in dom f
holds f.k < Sum(f);
theorem :: NUMBER17:43
n|->(c") = (n|->c)";
registration
let a
be non positive Real;
let b
be Real;
cluster <*a,b*> -> non positive-yielding;
end;
registration
let a
be Real;
let b
be non positive Real;
cluster <*a,b*> -> non positive-yielding;
end;
registration
let a
be non positive Real;
let b,c
be Real;
cluster <*a,b,c*> -> non positive-yielding;
end;
registration
let b
be non positive Real;
let a,c
be Real;
cluster <*a,b,c*> -> non positive-yielding;
end;
registration
let c
be non positive Real;
let a,b
be Real;
cluster <*a,b,c*> -> non positive-yielding;
end;
registration
let a
be non positive Real;
let b,c,d
be Real;
cluster <*a,b,c,d*> -> non positive-yielding;
end;
registration
let b
be non positive Real;
let a,c,d
be Real;
cluster <*a,b,c,d*> -> non positive-yielding;
end;
registration
let c
be non positive Real;
let a,b,d
be Real;
cluster <*a,b,c,d*> -> non positive-yielding;
end;
registration
let d
be non positive Real;
let a,b,c
be Real;
cluster <*a,b,c,d*> -> non positive-yielding;
end;
registration
let a
be non positive Real;
let b,c,d,e
be Real;
cluster <*a,b,c,d,e*> -> non positive-yielding;
end;
registration
let b
be non positive Real;
let a,c,d,e
be Real;
cluster <*a,b,c,d,e*> -> non positive-yielding;
end;
registration
let c
be non positive Real;
let a,b,d,e
be Real;
cluster <*a,b,c,d,e*> -> non positive-yielding;
end;
registration
let d
be non positive Real;
let a,b,c,e
be Real;
cluster <*a,b,c,d,e*> -> non positive-yielding;
end;
registration
let e
be non positive Real;
let a,b,c,d
be Real;
cluster <*a,b,c,d,e*> -> non positive-yielding;
end;
theorem :: NUMBER17:44
for f
being positive natural-valued
1-element FinSequence
ex a
being positive Nat st f = <*a*>;
theorem :: NUMBER17:45
for f
being positive natural-valued
2-element FinSequence
ex a,b
being positive Nat st f = <*a,b*>;
theorem :: NUMBER17:46
for f
being increasing positive natural-valued
2-element FinSequence
ex a,b
being positive Nat st f = <*a,b*> & a < b;
theorem :: NUMBER17:47
for f
being positive natural-valued
3-element FinSequence
ex a,b,c
being positive Nat st f = <*a,b,c*>;
theorem :: NUMBER17:48
for f
being increasing positive natural-valued
3-element FinSequence
ex a,b,c
being positive Nat st f = <*a,b,c*> & a < b < c;
theorem :: NUMBER17:49
for f,g
being complex-valued Function st c(
#)f = c(
#)g & c <>
0 holds f = g;
theorem :: NUMBER17:50
for f,g
being complex-valued Function
holds (f(
#)g)" = f"(
#)g";
theorem :: NUMBER17:51
for f,g
being complex-valued Function
holds
(c1(
#)f)(
#)(c2(
#)g) = (c1*c2)(
#)(f(
#)g);
theorem :: NUMBER17:52
for f1,f2,g1,g2,h1,h2
being complex-valued FinSequence
st len f1 = len g1 = len h1
holds
(f1^f2) (
#) (g1^g2) (
#) (h1^h2) = (f1(
#)g1(
#)h1) ^ (f2(
#)g2(
#)h2);
theorem :: NUMBER17:53
for n
being Nat, e
being object
holds Segm(n+
1) --> e = <%e%>^(Segm n --> e);
begin :: Problem 37
theorem :: NUMBER17:54
for n,b
being Nat st n>
0 & b>
1 holds digits(n*b,b)=<%
0%>^digits(n,b);
theorem :: NUMBER17:55
for n,b
being Nat st n>
0 & b>
1
for i
being Nat
holds digits(n*(b|^i),b)=(i-->
0)^digits(n,b);
theorem :: NUMBER17:56
for s
being Nat
ex n
being Nat st Sum digits(n,
10) = s & s divides n;
begin :: Problem 101
theorem :: NUMBER17:57
for a,b
being set
holds Replace(<%a%>,
0,b) = <%b%>;
theorem :: NUMBER17:58
for a,b,c
being set
holds Replace(<%a,b%>,
0,c) = <%c,b%>;
theorem :: NUMBER17:59
for a,b,c
being set
holds Replace(<%a,b%>,
1,c) = <%a,c%>;
theorem :: NUMBER17:60
for a,b,c,d
being set
holds Replace(<%a,b,c%>,
0,d) = <%d,b,c%>;
theorem :: NUMBER17:61
for a,b,c,d
being set
holds Replace(<%a,b,c%>,
1,d) = <%a,d,c%>;
theorem :: NUMBER17:62
for a,b,c,d
being set
holds Replace(<%a,b,c%>,
2,d) = <%a,b,d%>;
theorem :: NUMBER17:63
digits(
201,
10) = <%
1,
0,
2%>;
theorem :: NUMBER17:64
digits(
202,
10) = <%
2,
0,
2%>;
theorem :: NUMBER17:65
digits(
203,
10) = <%
3,
0,
2%>;
theorem :: NUMBER17:66
digits(
205,
10) = <%
5,
0,
2%>;
theorem :: NUMBER17:67
digits(
206,
10) = <%
6,
0,
2%>;
theorem :: NUMBER17:68
for i,j
being Element
of NAT st
0 <= j <=
9
holds value(Replace(digits(
200,
10),i,j),
10)
is not prime;
begin :: Problem 115
::$N A consequence of Euler's theorem
theorem :: NUMBER17:69
for a,n,x,y
being Nat st a,n are_coprime & a <>
0 & n <>
0 &
x,y are_congruent_mod Euler(n)
holds a|^x,a|^y are_congruent_mod n;
theorem :: NUMBER17:70
for a
being Nat
for k
being Integer st k <>
1
ex n
being positive Nat st a <
2|^(
2|^n)+k &
2|^(
2|^n)+k
is composite;
theorem :: NUMBER17:71
for k
being Integer st k <>
1 holds
{ n
where n
is positive Nat:
2|^(
2|^n)+k
is composite },
{
2|^(
2|^n)+k
where n
is positive Nat:
2|^(
2|^n)+k
is composite }
are_equipotent;
:: Problem 115
theorem :: NUMBER17:72
for k
being Integer st k <>
1 holds
{
2|^(
2|^n)+k
where n
is positive Nat:
2|^(
2|^n)+k
is composite }
is infinite
;
:: Problem 115
theorem :: NUMBER17:73
for k
being Integer st k <>
1 holds
{ n
where n
is positive Nat:
2|^(
2|^n)+k
is composite }
is infinite;
begin
theorem :: NUMBER17:74
7 divides
2|^(
2|^(
2*s+
1)) +
3;
:: Problem 117 a
theorem :: NUMBER17:75
2|^(
2|^(
2*s+
1)) +
3 is composite;
theorem :: NUMBER17:76
11 divides
2|^(
2|^(
4*s+
1)) +
7;
:: Problem 117 b
theorem :: NUMBER17:77
2|^(
2|^(
4*s+
1)) +
7 is composite;
theorem :: NUMBER17:78
29 divides
2|^(
2|^(
6*s+
2)) +
13;
:: Problem 117 c
theorem :: NUMBER17:79
2|^(
2|^(
6*s+
2)) +
13 is composite;
theorem :: NUMBER17:80
23 divides
2|^(
2|^(
10*s+
1)) +
19;
:: Problem 117 d
theorem :: NUMBER17:81
2|^(
2|^(
10*s+
1)) +
19 is composite;
theorem :: NUMBER17:82
37 divides
2|^(
2|^(
6*s+
2)) +
21;
:: Problem 117 e
theorem :: NUMBER17:83
2|^(
2|^(
6*s+
2)) +
21 is composite;
begin :: Problem 145
theorem :: NUMBER17:84
Fermat(
5) =
641 *
6700417;
:: = 4294967297
:: Problem 145
theorem :: NUMBER17:85
for x,y
being positive Nat
holds
x*y+x+y =
2|^
32 iff x =
640 & y =
6700416 or x =
6700416 & y =
640;
begin :: Problem 157
registration
let a
be non positive Integer;
let n
be odd Nat;
cluster a|^n -> non positive;
end;
theorem :: NUMBER17:86
for a,b,c,d,n
being Nat st a,b,c are_mutually_coprime & a*b*c = d|^n
ex k
being Nat st a = k|^n;
:: Problem 157
theorem :: NUMBER17:87
(
for x,y,z
being positive Nat
holds x/y + y/z <> z/x)
iff
(
for u,v,w
being positive Nat
holds u|^
3 + v|^
3 <> w|^
3);
begin :: Problem 159
registration
let a,b,c
be positive Real;
cluster <*a,b,c*> -> positive-yielding;
end;
registration
let a,b,c,d
be positive Real;
cluster <*a,b,c,d*> -> positive-yielding;
end;
theorem :: NUMBER17:88
for a,b,c,d
being Complex
holds Product <*a,b,c,d*> = a*b*c*d;
theorem :: NUMBER17:89
for a
being positive Real
holds 2-root(a) = sqrt(a);
theorem :: NUMBER17:90
for a
being positive Real
holds GMean <*a*> = a;
theorem :: NUMBER17:91
for a,b
being positive Real
holds (GMean <*a,b*>)|^
2 = a*b;
theorem :: NUMBER17:92
for a,b,c
being positive Real
holds (GMean <*a,b,c*>)|^
3 = a*b*c;
theorem :: NUMBER17:93
for a,b,c,d
being positive Real
holds (GMean <*a,b,c,d*>)|^
4 = a*b*c*d;
theorem :: NUMBER17:94
for a
being Real
holds Mean <*a*> = a;
theorem :: NUMBER17:95
for a,b
being Real
holds Mean <*a,b*> = (a+b)/
2;
theorem :: NUMBER17:96
for a,b,c
being Real
holds Mean <*a,b,c*> = (a+b+c)/
3;
theorem :: NUMBER17:97
for a,b,c,d
being Real
holds Mean <*a,b,c,d*> = (a+b+c+d)/
4;
theorem :: NUMBER17:98
for w,x,y,z
being object st <*w,x,y,z*>
is constant
holds w = x = y = z;
theorem :: NUMBER17:99
for a,b,c,d
being positive Real st a*b*c*d >= ((a+b+c+d)/
4)|^
4
holds a = b = c = d;
:: Problem 159 a
theorem :: NUMBER17:100
for m
being Real st
0 <= m <
4 holds
not ex x,y,z,t
being positive Integer st x/y + y/z + z/t + t/x = m;
:: Problem 159 b
theorem :: NUMBER17:101
{ [x,y,z,t]
where x,y,z,t
is positive Integer: x/y + y/z + z/t + t/x =
4 }
= { [x,y,z,t]
where x,y,z,t
is positive Integer: x = y = z = t };
registration
let a,b
be Nat;
reduce In([a,b],[:NAT,NAT:]) to [a,b];
end;
registration
let a,b,c
be Nat;
reduce In([a,b,c],[:NAT,NAT,NAT:]) to [a,b,c];
end;
registration
let a,b,c,d
be Nat;
reduce In([a,b,c,d],[:NAT,NAT,NAT,NAT:]) to [a,b,c,d];
end;
registration
let a
be positive Nat;
reduce In(a,NATPLUS) to a;
end;
registration
let a,b
be positive Nat;
reduce In([a,b],[:NATPLUS,NATPLUS:]) to [a,b];
end;
registration
let a,b,c
be positive Nat;
reduce In([a,b,c],[:NATPLUS,NATPLUS,NATPLUS:]) to [a,b,c];
end;
registration
let a,b,c,d
be positive Nat;
reduce In([a,b,c,d],[:NATPLUS,NATPLUS,NATPLUS,NATPLUS:]) to [a,b,c,d];
end;
definition
func Cart4Id -> Function
of NATPLUS, [:NATPLUS,NATPLUS,NATPLUS,NATPLUS:]
means
:: NUMBER17:def 1
for n
being positive Nat
holds it.n = [n,n,n,n];
end;
registration
cluster Cart4Id -> one-to-one;
end;
theorem :: NUMBER17:102
rng Cart4Id c=
{ [x,y,z,t]
where x,y,z,t
is positive Integer: x/y + y/z + z/t + t/x =
4 };
:: Problem 159 c
theorem :: NUMBER17:103
{ [x,y,z,t]
where x,y,z,t
is positive Integer: x/y + y/z + z/t + t/x =
4 }
is infinite;
begin :: Problem 161
definition
let R
be Relation;
func Permutations(R) -> set equals
:: NUMBER17:def 2
the set
of all p*R
where p
is Permutation
of dom R;
end;
definition
let f
be Function;
redefine
func Permutations(f) -> set equals
:: NUMBER17:def 3
the set
of all f*p
where p
is Permutation
of dom f;
end;
definition
let A
be set;
attr A
is relational means
:: NUMBER17:def 4
for a
being object st a
in A
holds a
is Relation;
end;
registration
let a,b
be object;
cluster { { [a,b] } } -> relational;
end;
registration
cluster non empty finite relational
for set;
end;
registration
let A
be relational set;
cluster -> Relation-like
for Element
of A;
end;
registration
cluster functional -> relational
for set;
end;
registration
let R
be finite Relation;
cluster Permutations(R) -> finite;
end;
definition
let A
be relational set;
func Permutations(A) -> set equals
:: NUMBER17:def 5
{ Permutations(f)
where f
is Element
of A: f
in A };
end;
registration
let A
be finite relational set;
cluster Permutations(A) -> finite;
end;
definition
let f
be complex-valued FinSequence;
attr f
is with_sum_of_reciprocals_equal_1 means
:: NUMBER17:def 6
Sum(f") =
1;
end;
registration
cluster <*
1*> -> with_sum_of_reciprocals_equal_1;
end;
registration
cluster with_sum_of_reciprocals_equal_1
for complex-valued FinSequence;
end;
definition
let s
be Nat;
func SolutionsOfSumOfReciprocals(s) -> set equals
:: NUMBER17:def 7
{ f
where f
is positive-yielding s-element natural-valued FinSequence:
f
is with_sum_of_reciprocals_equal_1 };
end;
registration
let s
be zero Nat;
cluster SolutionsOfSumOfReciprocals(s) -> empty;
end;
theorem :: NUMBER17:104
Sum(s|->(s")) =
1;
registration
let s
be positive Nat;
cluster s|->s -> with_sum_of_reciprocals_equal_1;
end;
theorem :: NUMBER17:105
s|->s
in SolutionsOfSumOfReciprocals(s);
registration
let s
be positive Nat;
cluster SolutionsOfSumOfReciprocals(s) -> non empty;
end;
definition
let A,B
be FinSequence-membered set;
func A^^B -> set equals
:: NUMBER17:def 8
{ p^q
where p
is (Element
of A), q
is Element
of B: p
in A & q
in B };
end;
registration
let A,B
be FinSequence-membered set;
cluster A^^B -> FinSequence-membered;
end;
theorem :: NUMBER17:106
for A
being FinSequence-membered set
holds A^^{} c= A;
theorem :: NUMBER17:107
for A
being FinSequence-membered set
holds {}^^A c= A;
registration
let A,B
be finite FinSequence-membered set;
cluster A^^B -> finite;
end;
definition
let D,A
be set;
attr A
is D-FinSequence-membered means
:: NUMBER17:def 9
for f
being object st f
in A
holds f
is D-valued FinSequence;
end;
registration
let D
be non empty set;
let d
be Element
of D;
cluster { <*d*> } -> D-FinSequence-membered;
end;
registration
let D
be non empty set;
cluster D-FinSequence-membered
for set;
end;
definition
let D
be non empty set;
let A
be D-FinSequence-membered set;
func decomp(A) -> Relation means
:: NUMBER17:def 10
for x,y
being object
holds [x,y]
in it iff
x
in D &
ex f
being FinSequence
of D st y = f & <*x*>^f
in A;
end;
registration
let D
be set;
cluster D-FinSequence-membered -> FinSequence-membered
for set;
end;
definition
let A
be set;
func OneFS(A) -> ManySortedSet
of A means
:: NUMBER17:def 11
for a
being object st a
in A
holds it.a = <*a*>;
end;
registration
let A
be set;
cluster OneFS(A) -> FinSequence-yielding;
end;
registration
let f
be FinSequence-yielding Function;
cluster rng f -> FinSequence-membered;
end;
registration
let n;
let f
be n-element real-valued FinSequence;
cluster sort_a(f) -> n-element;
cluster sort_d(f) -> n-element;
end;
theorem :: NUMBER17:108
for f,g
being complex-valued FinSequence, P
being Permutation
of dom g
st f = g*P & len g >=
1 holds f" = (g")*P;
theorem :: NUMBER17:109
for f,g
being complex-valued FinSequence st
f,g are_fiberwise_equipotent
holds f",g" are_fiberwise_equipotent;
theorem :: NUMBER17:110
for s
being Nat
for f
being non-decreasing positive (s+
1)-element natural-valued FinSequence
holds f.
1 <= (s+
1)/Sum(f") & Sum(Del(f,
1)") = Sum(f")-
1/f.
1;
theorem :: NUMBER17:111
for s
being Nat, w
being Rational
holds
{ f
where f
is non-decreasing positive s-element natural-valued FinSequence:
Sum(f") = w }
is finite;
theorem :: NUMBER17:112
for s
being Nat, w
being Rational
holds
{ f
where f
is positive-yielding s-element natural-valued FinSequence:
Sum(f") = w }
is finite;
:: Problem 161
registration
let s
be Nat;
cluster SolutionsOfSumOfReciprocals(s) -> finite;
end;
begin :: Problem 162
registration
cluster <*
2,
3*> -> increasing;
end;
registration
cluster <*
2,
3,
6*> -> increasing;
end;
registration
cluster <*
2,
3,
7,
42*> -> increasing;
end;
registration
cluster <*
2,
3,
8,
24*> -> increasing;
end;
definition
let f
be complex-valued FinSequence;
func Sierp162FS(f) -> FinSequence equals
:: NUMBER17:def 12
<*
2*> ^ (
2(
#)f);
func Sierp162FS_2(f) -> FinSequence equals
:: NUMBER17:def 13
<*
2,
3*> ^ (
6(
#)f);
end;
registration
let f
be complex-valued FinSequence;
cluster Sierp162FS(f) -> complex-valued;
cluster Sierp162FS_2(f) -> complex-valued;
end;
registration
let f
be real-valued FinSequence;
cluster Sierp162FS(f) -> real-valued;
cluster Sierp162FS_2(f) -> real-valued;
end;
registration
let f
be rational-valued FinSequence;
cluster Sierp162FS(f) -> rational-valued;
cluster Sierp162FS_2(f) -> rational-valued;
end;
registration
let f
be integer-valued FinSequence;
cluster Sierp162FS(f) -> integer-valued;
cluster Sierp162FS_2(f) -> integer-valued;
end;
registration
let f
be natural-valued FinSequence;
cluster Sierp162FS(f) -> natural-valued;
cluster Sierp162FS_2(f) -> natural-valued;
end;
registration
let s
be Nat;
let f
be s-element complex-valued FinSequence;
cluster Sierp162FS(f) -> (s+
1)-element;
cluster Sierp162FS_2(f) -> (s+
2)-element;
end;
registration
let s
be Nat;
cluster increasing s-element
for natural-valued FinSequence;
end;
theorem :: NUMBER17:113
for s
being Nat
holds s >=
2 implies
for f
being positive-yielding s-element real-valued FinSequence
st f
is with_sum_of_reciprocals_equal_1
for k
being Nat st k
in dom f
holds f.k >
1;
theorem :: NUMBER17:114
for s
being Nat
holds s >=
2 implies
for f
being increasing positive-yielding s-element real-valued FinSequence
st f
is with_sum_of_reciprocals_equal_1
holds Sierp162FS(f)
is increasing;
theorem :: NUMBER17:115
for f
being increasing positive-yielding s-element natural-valued FinSequence
holds Sierp162FS_2(f)
is increasing;
theorem :: NUMBER17:116
for f
being complex-valued FinSequence st
f
is with_sum_of_reciprocals_equal_1
holds Sierp162FS(f)
is with_sum_of_reciprocals_equal_1;
theorem :: NUMBER17:117
for f
being complex-valued FinSequence st
f
is with_sum_of_reciprocals_equal_1
holds Sierp162FS_2(f)
is with_sum_of_reciprocals_equal_1;
theorem :: NUMBER17:118
<*
2,
3,
6*>
is with_sum_of_reciprocals_equal_1;
theorem :: NUMBER17:119
<*
2,
3,
7,
42*>
is with_sum_of_reciprocals_equal_1;
theorem :: NUMBER17:120
<*
2,
3,
8,
24*>
is with_sum_of_reciprocals_equal_1;
:: Problem 162 a
theorem :: NUMBER17:121
for s
being Nat st s >
2
ex f
being increasing positive-yielding s-element natural-valued FinSequence
st f
is with_sum_of_reciprocals_equal_1;
definition
let s
be Nat;
func IncreasingSolutionsOfSumOfReciprocals(s) -> set equals
:: NUMBER17:def 14
{ f
where
f
is increasing positive-yielding s-element natural-valued FinSequence:
f
is with_sum_of_reciprocals_equal_1 };
end;
theorem :: NUMBER17:122
for s
being Nat
holds
IncreasingSolutionsOfSumOfReciprocals(s) c= SolutionsOfSumOfReciprocals(s);
registration
let s
be positive Nat;
cluster IncreasingSolutionsOfSumOfReciprocals(s) -> finite;
end;
theorem :: NUMBER17:123
IncreasingSolutionsOfSumOfReciprocals(
3) = {<*
2,
3,
6*>};
theorem :: NUMBER17:124
{<*
2,
3,
7,
42*>,<*
2,
3,
8,
24*>} c= IncreasingSolutionsOfSumOfReciprocals(
4);
:: Problem 162 b
theorem :: NUMBER17:125
for s
being positive Nat st s >
2 holds
card IncreasingSolutionsOfSumOfReciprocals(s) <
card IncreasingSolutionsOfSumOfReciprocals(s+
1);
begin :: Problem 163
registration
let n
be Nat;
cluster Triangle n -> triangular;
end;
registration
let a
be triangular Nat;
cluster <*a*> -> triangular-valued;
end;
registration
cluster triangular-valued
for FinSequence;
end;
registration
let f,g
be triangular-valued FinSequence;
cluster f^g -> triangular-valued;
end;
registration
let a,b
be triangular Nat;
cluster <*a,b*> -> triangular-valued;
end;
registration
let a,b,c
be triangular Nat;
cluster <*a,b,c*> -> triangular-valued;
end;
registration
let a,b,c,d
be triangular Nat;
cluster <*a,b,c,d*> -> triangular-valued;
end;
registration
let a,b,c,d,e
be triangular Nat;
cluster <*a,b,c,d,e*> -> triangular-valued;
end;
registration
let a,b,c,d,e,f
be triangular Nat;
cluster <*a,b,c,d,e,f*> -> triangular-valued;
end;
theorem :: NUMBER17:126
<* Triangle
1 *>
is with_sum_of_reciprocals_equal_1;
theorem :: NUMBER17:127
<* Triangle
2, Triangle
2, Triangle
2 *>
is with_sum_of_reciprocals_equal_1;
theorem :: NUMBER17:128
<* Triangle
2,Triangle
2,Triangle
3,Triangle
3 *>
is with_sum_of_reciprocals_equal_1;
theorem :: NUMBER17:129
<* Triangle
3,Triangle
3,Triangle
3,Triangle
3,Triangle
3,Triangle
3*>
is with_sum_of_reciprocals_equal_1;
definition
let n,a
be Nat
such that
n >= a+
1;
func TriangleShift2(n,a) -> FinSequence
of NAT means
:: NUMBER17:def 15
len it = n-a-
1 &
for i
being Nat st
1 <= i <= len it
holds it.i = Triangle(a+i);
end;
registration
cluster TriangleShift2(
3,
2) -> empty;
end;
theorem :: NUMBER17:130
TriangleShift2(
4,
2) = <*Triangle
3*>;
theorem :: NUMBER17:131
n >= a+
1 implies TriangleShift2(n+
1,a) = TriangleShift2(n,a)^<*Triangle(n)*>;
theorem :: NUMBER17:132
a+
1 <= n
implies TriangleShift2(n,a)
is triangular-valued;
registration
let m,n;
cluster m |-> Triangle(n) -> triangular-valued;
end;
theorem :: NUMBER17:133
3 <= n
implies Sum ((TriangleShift2(n,
2))") =
2/
3 - (n+
1)/Triangle(n);
:: Problem 163
theorem :: NUMBER17:134
s <>
2 implies
ex f
being natural-valued s-element FinSequence st
f
is triangular-valued with_sum_of_reciprocals_equal_1;
begin :: Problem 165
definition
let f
be complex-valued FinSequence;
attr f
is with_sum_of_squares_of_reciprocals_equal_1 means
:: NUMBER17:def 16
Sum (f" ^
2) =
1;
end;
theorem :: NUMBER17:135
<*
1*>
is with_sum_of_squares_of_reciprocals_equal_1;
theorem :: NUMBER17:136
<*
2,
2,
2,
2*>
is with_sum_of_squares_of_reciprocals_equal_1;
theorem :: NUMBER17:137
<*
2,
2,
2,
3,
3,
6*>
is with_sum_of_squares_of_reciprocals_equal_1;
theorem :: NUMBER17:138
<*
2,
2,
2,
4,
4,
4,
4*>
is with_sum_of_squares_of_reciprocals_equal_1;
theorem :: NUMBER17:139
<*
2,
2,
2,
3,
3,
7,
14,
21*>
is with_sum_of_squares_of_reciprocals_equal_1;
theorem :: NUMBER17:140
for f
being s-element natural-valued FinSequence
st f
is with_sum_of_squares_of_reciprocals_equal_1
holds f|(s-
1) ^ <*
2*f.s,
2*f.s,
2*f.s,
2*f.s *>
is with_sum_of_squares_of_reciprocals_equal_1;
registration
let s
be positive Nat;
let a,b,c,d
be positive Real;
let f
be s-element positive real-valued FinSequence;
cluster <* a*f.s,b*f.s,c*f.s,d*f.s *> -> positive-yielding;
end;
theorem :: NUMBER17:141
for f
being s-element positive natural-valued FinSequence
st f
is with_sum_of_squares_of_reciprocals_equal_1
ex g
being s+
3*n-element positive natural-valued FinSequence
st g
is with_sum_of_squares_of_reciprocals_equal_1;
scheme :: NUMBER17:sch 1
STEP2a { N() -> Nat, P[Nat] } :
for k
being Nat st k >= N()
holds P[k]
provided
P[N()]
and
P[N()+
1]
and
for k
being Nat st k >= N() & P[k] & P[k+
1]
holds P[k+
2];
scheme :: NUMBER17:sch 2
STEP2 { P[Nat] } :
for k
being Nat
holds P[k]
provided
for k
being Nat
holds P[
2*k] & P[
2*k+
1];
scheme :: NUMBER17:sch 3
STEP3 { P[Nat] } :
for k
being Nat
holds P[k]
provided
for k
being Nat
holds P[
3*k] & P[
3*k+
1] & P[
3*k+
2];
scheme :: NUMBER17:sch 4
STEP4 { P[Nat] } :
for k
being Nat
holds P[k]
provided
for k
being Nat
holds P[
4*k] & P[
4*k+
1] & P[
4*k+
2] & P[
4*k+
3];
:: Problem 165
theorem :: NUMBER17:142
(
ex f
being s-element positive natural-valued FinSequence st
f
is with_sum_of_squares_of_reciprocals_equal_1)
iff s =
1 or s =
4 or s >=
6;
begin :: Problem 169
definition
let s
be Nat;
let f
be (s+
1)-element complex-valued FinSequence;
attr f
is a_solution_of_Sierp169 means
:: NUMBER17:def 17
Sum (((f|s)(
#)(f|s)(
#)(f|s))") =
1 / ((f.(s+
1))|^
3);
end;
registration
let a,b,c,d
be object;
cluster <*a,b,c,d*> ->
3+
1-element;
end;
theorem :: NUMBER17:143
<*
12,
15,
20,
10*>
is a_solution_of_Sierp169;
registration
let a,b,c,d,e
be object;
cluster <*a,b,c,d,e*> ->
4+
1-element;
end;
theorem :: NUMBER17:144
<*
455,
780,
1092,
5460,
420*>
is a_solution_of_Sierp169;
registration
let s
be positive Nat;
let n
be Nat;
let c
be Complex;
let f
be s+n-element complex-valued FinSequence;
let g
be 4-element FinSequence;
cluster (c(
#)f|(s-
1)) ^ g -> s+
2+
1-element;
end;
theorem :: NUMBER17:145
for f
being s+
1-element complex-valued FinSequence
st f
is a_solution_of_Sierp169
holds
(
10(
#)f|(s-
1)) ^ <*
12*f.s,
15*f.s,
20*f.s,
10*f.(s+
1) *>
is a_solution_of_Sierp169;
registration
let s
be positive Nat;
let a,b,c,d
be positive Real;
let f
be s+
1-element positive real-valued FinSequence;
cluster <* a*f.s,b*f.s,c*f.s,d*f.(s+
1) *> -> positive-yielding;
end;
theorem :: NUMBER17:146
for f
being s+
1-element complex-valued FinSequence
st f
is a_solution_of_Sierp169
holds n(
#)f
is a_solution_of_Sierp169;
definition
let s
be positive Nat
such that
s >=
3;
mode Solution_of_Sierp169
of s ->
(s+
1)-element positive-yielding natural-valued FinSequence means
:: NUMBER17:def 18
it
is a_solution_of_Sierp169;
end;
theorem :: NUMBER17:147
s >=
3 implies
for f
being Solution_of_Sierp169
of s
holds
rng Solutions_of_Sierp168(f) c=
the set
of all g
where g
is Solution_of_Sierp169
of s;
:: Problem 169
theorem :: NUMBER17:148
for s
being positive Nat st s >=
3 holds
the set
of all f
where f
is Solution_of_Sierp169
of s
is infinite;