Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Mizar/prel/i/     Datei vom 6.10.2026 mit Größe 9 kB image not shown  

Quelle  number19.abs   Sprache: Mizar

 

:: Elementary Number Theory Problems. {P}art {XIX}
::  by Karol P\kak
::
:: Received December 21, 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, RLVECT_1, ALGSTR_0, XBOOLE_0, FINSEQ_1, NAT_1, RELAT_1,
      REALSET1, ARYTM_3, TARSKI, ORDINAL4, PARTFUN1, XXREAL_0, FUNCT_1,
      SUBSET_1, STRUCT_0, BINOP_1, VECTSP_1, LATTICES, SUPINF_2, ARYTM_1,
      GROUP_1, CARD_1, MESFUNC1, COMPLFLD, COMPLEX1, CARD_3, POLYNOM1,
      POLYNOM3, SGRAPH1, INT_1, ALGSEQ_1, VECTSP_2, POLYNOM5, AFINSQ_1,
      POLYNOM2, FUNCOP_1, XCMPLX_0, HURWITZ, FINSEQ_2, VALUED_0, ZFMISC_1,
      REAL_1, QC_LANG1, C0SP1, FUNCSDOM, FINSEQ_3, FUNCT_7, FUNCT_2, ALGNUM_1,
      FINSET_1, ORDINAL1, UPROOTS, MEMBERED, INT_3, GAUSSINT, INT_2, NEWTON,
      RAT_1, NUMBER13, FINSEQ_4, JORDAN3, NAT_3, ABIAN, MOEBIUS1, POWER,
      EULER_1, NUMBER02, NUMBER12, INT_6, PARTFUN3, CALCUL_2, GROEB_1,
      NUMBER10, NUMBER14, NUMERAL1, FINSEQ_5, RFINSEQ, PEPIN, NUMBER19;
 notations TARSKI, XBOOLE_0, SUBSET_1, RELAT_1, REALSET1, MEMBERED, ORDINAL1,
      NUMBERS, XCMPLX_0, XREAL_0, ALGSTR_0, VECTSP_2, FUNCT_1, RELSET_1,
      PARTFUN1, FUNCT_2, XXREAL_0, FINSEQ_1, INT_1, NAT_1, FUNCOP_1, STRUCT_0,
      RLVECT_1, VFUNCT_1, GROUP_1, COMPLEX1, COMPLFLD, AFINSQ_1, AFINSQ_2,
      ALGSEQ_1, POLYNOM3, POLYNOM4, POLYNOM5, VECTSP_1, HURWITZ, BASEL_2,
      FINSEQ_2, RVSUM_1, GROUP_4, C0SP1, ALGNUM_1, ZFMISC_1, CARD_1, FINSET_1,
      DOMAIN_1, INT_3, NEWTON, GAUSSINT, RAT_1, INT_2, FINSEQ_4, WSIERP_1,
      FVSUM_1, NUMBER13, POWER, NAT_3, ABIAN, PEPIN, MOEBIUS1, EULER_1,
      RECDEF_1, RFINSEQ, FINSEQ_5, FINSEQ_6, VALUED_0, PARTFUN3, INT_6, NAT_D,
      NUMBER02, NUMBER10, NUMBER12, CALCUL_2, NUMBER14, NUMERAL1;
 constructors REALSET1, POLYNOM4, NAT_D, FVSUM_1, VFUNCT_1, ALGSEQ_1, BINOP_2,
      HURWITZ, BASEL_2, RATFUNC1, RING_3, GROUP_4, ALGNUM_1, WSIERP_1,
      NUMBER13, WELLORD2, NEWTON03, ABIAN, POWER, AFINSQ_2, NAT_3, EULER_1,
      PEPIN, RECDEF_1, MOEBIUS1, RFINSEQ, FINSEQ_5, FINSEQ_6, NUMBER02,
      PYTHTRIP, NUMBER10, NUMBER12, NEWTON04, NUMBER14, NUMERAL1, CALCUL_2;
 registrations XBOOLE_0, ORDINAL1, RELSET_1, XCMPLX_0, XXREAL_0, XREAL_0,
      NAT_1, INT_1, FINSEQ_1, STRUCT_0, VECTSP_1, COMPLFLD, ALGSTR_1, POLYNOM3,
      POLYNOM4, POLYNOM5, FUNCOP_1, CARD_1, VFUNCT_1, FUNCT_2, MEMBERED,
      FUNCT_1, NUMBERS, FINSEQ_2, VALUED_0, FINSET_1, SUBSET_1, RLVECT_1,
      RATFUNC1, RING_5, FIELD_4, NEWTON04, INT_3, GAUSSINT, NEWTON, WSIERP_1,
      COMPLEX1, NEWTON03, MOEBIUS1, FOMODEL0, RVSUM_1, RFINSEQ, ABIAN,
      FINSEQ_5, POWER, NUMBER03, NUMBER13, NAT_6, JORDAN1D, PARTFUN3, FINSEQ_9,
      NUMBER10, INT_6, NUMBER14, HILB10_4, AFINSQ_1, AFINSQ_2, RVSUM_4,
      CALCUL_2, NAT_5;
 requirements NUMERALS, SUBSET, REAL, BOOLE, ARITHM;


begin :: Preliminaries

reserve n,m,k,i,a,b,c,d,s for Nat,
        p for Prime;

registration
  let f be positive-yielding real-valued FinSequence;
  cluster Rev f -> positive-yielding;
  let n be Nat;
  cluster f/^n -> positive-yielding;
  cluster f|n -> positive-yielding;
end;

registration
  let f be positive-yielding real-valued FinSequence;
  let n,m be Nat;
  cluster mid(f,n,m) -> positive-yielding;
end;

theorem :: NUMBER19:1
  n divides m implies NatDivisors n c= NatDivisors m;

theorem :: NUMBER19:2
  for m being non zero Nat st p|^n divides m holds
    n+1 <= card NatDivisors m;

registration
  let p be Prime;
  cluster p-'1 -> non zero;
end;

theorem :: NUMBER19:3
   for k,m,n,p st 1 <= k <= m <= n holds
     p divides Product mid(primesFinS n,k,m) iff
       k <= 1 + primeindex p <= m;

theorem :: NUMBER19:4
  for k,m,n,a,b st 1 <= k <= m < n <= a <= b holds
          Product mid(primesFinS b,k,m),
          Product mid(primesFinS b,n,a) are_coprime;

theorem :: NUMBER19:5
  for u being integer-valued FinSequence
  for m being CR_Sequence
  for z being Integer st z solves_CRT u,m
  for i st i in dom u & u.i,m.i are_coprime
     holds z,m.i are_coprime;

theorem :: NUMBER19:6
  for u being integer-valued FinSequence
  for m being CR_Sequence st dom u = dom m
  for z being Nat st z solves_CRT u,m &
    for i st i in dom u holds u.i,m.i are_coprime
  holds z,Product m are_coprime;

registration
  let f be one-to-one FinSequence;
  let n,m be Nat;
  cluster mid(f,n,m) -> one-to-one;
end;

theorem :: NUMBER19:7
  for k,m,n st 1 <= k <= m <= n
     holds PrimeDivisors Product mid(primesFinS n,k,m) =
       rng mid(primesFinS n,k,m);

theorem :: NUMBER19:8
  for k,m,n st 1 <= k <= m <= n
     holds card PrimeDivisors Product mid(primesFinS n,k,m) = m-k+1;

theorem :: NUMBER19:9
  k divides n implies PrimeDivisors k c= PrimeDivisors n;

theorem :: NUMBER19:10
  n < primenumber n;

theorem :: NUMBER19:11
  primeindex p < p;

theorem :: NUMBER19:12
  value(n-->0,b) = 0;

theorem :: NUMBER19:13
   b > 1 & k > 0 & n > 0 implies
      value(<%1%> ^ ( n-'1 --> 0) ^ digits(k,b),b) =  k*b|^n +1;

theorem :: NUMBER19:14
  b > 1 & k > 0 & n > 0 implies
     digits(k*b|^n +1,b) =<%1%> ^( n-'1 --> 0) ^ digits(k,b);

theorem :: NUMBER19:15
  for f,g being XFinSequence, X being set holds
    card ((f^g)"X) = card (f"X) + card (g"X);

theorem :: NUMBER19:16
  b > 1 & k > 0 implies
    value( (n-->(b-'1)) ^ digits(k-'1,b),b) = k*b|^n -1;

theorem :: NUMBER19:17
  b > 1 & k > 0 & n > 0 implies
     Sum digits(k*b|^n -'1,b) >= n*(b-1);

begin :: Problem 108

:: For each odd number n > 1, the numbers n and n + 2 are prime
:: if and only if (n - 1)! is not divisible by n or n + 2.

theorem :: NUMBER19:18
  for n being odd natural number st n > 1 holds
    n is prime iff not n divides (n-'1)!;

theorem :: NUMBER19:19
  for n being odd natural number st n > 1 holds
    n+2 is prime
  iff
    not n+2 divides (n-'1)!;

:: Problem 108
theorem :: NUMBER19:20
  for n being odd natural number st n > 1 holds
    n is prime & n+2 is prime
  iff
    not n divides (n-'1)! & not n+2 divides (n-'1)!;

begin :: Problem 112

:: For each integer s between 2 and 10 inclusive, find all prime numbers
:: p such that the sum of all positive integer divisors of p is equal to
:: the s^(th) power of an integer.

theorem :: NUMBER19:21
  Sum canFS NatDivisors p = n|^s & 2 <= s implies n = 2;

::Problem 112
theorem :: NUMBER19:22
  for p being Prime, n, s being Nat st
    Sum canFS NatDivisors p = n|^s & 2 <= s <= 10 holds
    (s = 2 & p = 3) or (s = 3 & p = 7) or
    (s = 5 & p = 31) or
    (s = 7 & p = 127);

begin :: Problem 113

:: Prove that no prime greater than 5 and positive integer m exists such
:: that (p-1)!+1 = p^m.

theorem :: NUMBER19:23
  p > 5 implies (p-'1)!+1 <>p|^m;

begin :: Problem 114

:: Prove that there are infinitely many prime numbers q for which there
:: is a positive integer n < q such that q divides (n-1)!+1.

theorem :: NUMBER19:24
  p > 5 implies
    ex q being Prime st p < q & q divides (p-'1)!+1;

theorem :: NUMBER19:25
 for n,k being Nat holds
    0 < n < k implies n!< k!;

theorem :: NUMBER19:26
  {q where q is Prime: ex p being Prime st p < q divides (p-'1)!+1}
    is infinite;

:: Problem 114
theorem :: NUMBER19:27
  {q where q is Prime: ex n being Nat st n < q & q divides (n-'1)!+1}
    is infinite;

begin :: Problem 118

:: There are an infinite number of positive integers k such that
:: all numbers of the form k * 2^n+1 (where n = 1, 2, ...) are composite.

theorem :: NUMBER19:28
  Fermat 5 = 2|^32 +1 = 641 * 6700417 & 6700417 > Fermat 4;

theorem :: NUMBER19:29
(2|^32-1)*641,6700417 are_coprime;

theorem :: NUMBER19:30
  for k being Nat st
      k,1 are_congruent_mod (2|^32-1)*641 &
      k,-1 are_congruent_mod 6700417 &
      k > 6700417
   for n being positive Nat holds
        k*2|^n +1 is composite &
     ((Fermat 0 divides k*2|^n +1 or...or Fermat 4 divides k*2|^n +1)
   or 641 divides k*2|^n +1 or 6700417 divides k*2|^n +1);

theorem :: NUMBER19:31
  ex crt being Nat st 6700417 < crt < 2 * (2|^64-1) &
    for n being Nat holds
       crt +n * 2 * (2|^64-1), 1 are_congruent_mod (2|^32-1)*641 &
       crt +n * 2 * (2|^64-1), -1 are_congruent_mod 6700417  &
       crt +n * 2 * (2|^64-1), 1 are_congruent_mod 2;

::Problem 118
theorem :: NUMBER19:32
  {k where k is Nat: for n being positive Nat holds k*2|^n +1 is composite}
    is infinite;

begin :: Problem 119

:: There are infinitely many odd numbers k such that every number
:: of the form 2^n + k (where n = 1, 2, ...) is composite.
theorem :: NUMBER19:33
  for k being Nat st
    k = 15* 1000000000 * 1000000000 + 511380746 * 1000000000 + 462593381
  holds
  k > 6700417 &
  k, 1 are_congruent_mod (2|^32-1)*641 &
  k, -1 are_congruent_mod 6700417  &
  k, 1 are_congruent_mod 2 &
    (not Fermat 0 divides k*2|^(2|^5) +1
       &...&
     not Fermat 4 divides k*2|^(2|^5) +1) &
  not 6700417 divides k*2|^(2|^5) +1 &
  641 divides k*2|^(2|^5) +1;

registration
  let n be Nat;
  cluster Fermat n -> odd;
end;

theorem :: NUMBER19:34
  for n,m being non zero Nat, p st p|^n divides m
    holds Euler (p|^n) <= Euler m;

theorem :: NUMBER19:35
  for k st k,1 are_congruent_mod (2|^32-1)*641 &
      k,-1 are_congruent_mod 6700417 & k > 6700417 holds
  for n being positive Nat
     holds
  k+ (2|^n) is composite &
  ((Fermat 0 divides k+ 2|^n or...or Fermat 4 divides k+ 2|^n)
     or 641 divides k+ (2|^n) or 6700417 divides k+ (2|^n));

::Problem 119
theorem :: NUMBER19:36
  {k where k is Nat: for n being positive Nat holds 2|^n +k is composite}
    is infinite;

begin :: Lagrange basis and interpolating polynomials

theorem :: NUMBER19:37
  for L be non empty ZeroStr
    for p be Polynomial of L st len p = 1 holds p = <%p.0%>;

theorem :: NUMBER19:38
  for L be non empty ZeroStr
    for p be Polynomial of L st len p = 2 holds p = <%p.0, p.1%>;

theorem :: NUMBER19:39
  for R being Ring,x being Element of R, p being Polynomial of R
    holds Ext_eval(p,x) = eval(p,x);

theorem :: NUMBER19:40
  for R,S being Ring st S is Subring of R
    for p being Polynomial of R for x being Element of R
    for q being Polynomial of S for y being Element of S st p=q & x=y
      holds eval(p,x)=eval(q,y);

theorem :: NUMBER19:41
  for R being Field
    for p being Polynomial of R
    for a being Element of R st a is_a_root_of p
  holds p = (p div rpoly(1,a))*'rpoly(1,a);

theorem :: NUMBER19:42
  for R being non empty comRing
    for S being Ring st S is Subring of R
    for p,q being Polynomial of R st p is Polynomial of S
    for a being Element of R,b be Element of S st
      a=b & b is left_invertible & p = q *' rpoly(1,a)
  holds q is Polynomial of S;

reserve L for unital add-associative right_zeroed right_complementable
  distributive non empty doubleLoopStr;

definition
  let L;
  let z be FinSequence of the carrier of L;
  let f be NAT-valued FinSequence;
  func rpoly(f,z) -> FinSequence of the carrier of Polynom-Ring L means
:: NUMBER19:def 1
    len it = len f &
    for i being Nat st 1 <= i <= len f holds it.i = rpoly(f/.i,z/.i);
end;

theorem :: NUMBER19:43
  for z1,z2 being FinSequence of the carrier of L
    for f1,f2 being NAT-valued FinSequence st
      len f1 = len z1 & len f2 <= len z2
    holds rpoly(f1^f2,z1^z2) = rpoly(f1,z1)^rpoly(f2,z2);

theorem :: NUMBER19:44
  for z being Element of the carrier of L, k being Element of NAT
    holds rpoly(<*k*>,<*z*>) = <*rpoly(k,z)*>;

theorem :: NUMBER19:45
  for z1,z2 being FinSequence of the carrier of L
    for f being NAT-valued FinSequence st
       len f <= len z1 & len f <= len z2 & z1|len f = z2|len f
  holds rpoly(f,z1) = rpoly(f,z2);

theorem :: NUMBER19:46
  for z being FinSequence of the carrier of L
    for f being NAT-valued FinSequence
    for n being Nat st n < len f holds
  rpoly(f| (n+1),z) = rpoly(f|n,z) ^ <*rpoly(f/.(n+1),z/.(n+1))*>;

theorem :: NUMBER19:47
  for z being FinSequence of the carrier of L
    for f being NAT-valued FinSequence st len f=len z
    for p being Permutation of dom f
    for zp being FinSequence of the carrier of L st zp=z*p
  holds rpoly(f*p,zp) = rpoly(f,z)*p;

theorem :: NUMBER19:48
  for L being comRing
    for z being FinSequence of the carrier of L
    for f being NAT-valued FinSequence st len f=len z
    for p being Permutation of dom f
    for zp being FinSequence of the carrier of L st zp=z*p
  holds Product rpoly(f,z) = Product rpoly(f*p,zp);

theorem :: NUMBER19:49
  for L being non degenerated domRing-like Ring
    for z being FinSequence of the carrier of L
    for f being NAT-valued FinSequence
  holds deg ~Product rpoly(f,z) = Sum f;

theorem :: NUMBER19:50
  for L being non degenerated comRing
    for z being FinSequence of the carrier of L
    for f being NAT-valued FinSequence
    for x being Element of the carrier of L
  ex e being FinSequence of the carrier of L st
      eval(~Product rpoly(f,z),x) = Product e &
      len e = len f &
      for i st 1<=i<=len e holds e.i = eval(rpoly(f/.i,z/.i),x);

theorem :: NUMBER19:51
  for L being non degenerated comRing
    for z being FinSequence of the carrier of L
    for f being NAT-valued FinSequence
    for i st i in dom f & f.i <> 0
  holds z/.i is_a_root_of ~Product rpoly(f,z);

theorem :: NUMBER19:52
 for L being domRing
  for z being FinSequence of the carrier of L
    for f being NAT-valued FinSequence
      for x being Element of the carrier of L
        holds
  x is_a_root_of ~Product rpoly(f,z) iff
       ex i being Nat st i in dom f & x is_a_root_of rpoly(f/.i,z/.i);

theorem :: NUMBER19:53
  for L being domRing
    for z being FinSequence of the carrier of L
  holds Roots ~Product rpoly(len z |-> 1,z) = rng z;

definition
  let F be Field;
  let X be finite Subset of F, x be Element of F;
  func LagBPoly(X,x) -> Polynomial of F means
:: NUMBER19:def 2
    for z be one-to-one FinSequence of the carrier of F st rng z = X
      holds it = eval(~Product rpoly(len z|-> 1,z),x)" *
      ~Product rpoly(len z|-> 1,z);
end;

reserve F for Field;

theorem :: NUMBER19:54
    for X being finite Subset of F,
        x being Element of F st not x in X holds
      Roots LagBPoly(X,x) = X & eval(LagBPoly(X,x),x) = 1.F &
   deg LagBPoly(X,x) = card X;

theorem :: NUMBER19:55
  for x,y be Element of F holds
      LagBPoly({y},x) =  (x-y)" * rpoly(1,y);

theorem :: NUMBER19:56
  for X1,X2 being finite Subset of F,
     x being Element of F st not x in X1 & not x in X2 & X1 misses X2 holds
  LagBPoly(X1,x) *' LagBPoly(X2,x) = LagBPoly(X1\/X2,x);

definition
  let F be Field;
  let x,y be FinSequence of the carrier of F;
  func LagPoly(x,y) -> Polynomial of F means
:: NUMBER19:def 3
     ex L be FinSequence of the carrier of Polynom-Ring F st
       it = Sum L & len L = len x &
       for i being Nat st 1 <= i <= len x holds L.i =  y/.i *
       LagBPoly((rng x)\{x/.i},x/.i);
end;

theorem :: NUMBER19:57
  for x,y being FinSequence of the carrier of F
   for i being Nat holds
     (y/.i <>0.F implies
        Roots (y/.i * LagBPoly((rng x)\{x/.i},x/.i)) = (rng x)\{x/.i}) &
      eval(y/.i * LagBPoly((rng x)\{x/.i},x/.i),x/.i) = y/.i &
     (i in dom x & y/.i <>0.F implies
        deg (y/.i * LagBPoly((rng x)\{x/.i},x/.i)) = card rng x - 1);

theorem :: NUMBER19:58
  for x,y being FinSequence of the carrier of F holds
    degree LagPoly(x,y) <= len x - 1;

theorem :: NUMBER19:59
  for x,y being FinSequence of the carrier of F st x is one-to-one
    for i being Nat st i in dom x holds
       eval(LagPoly(x,y),x/.i) = y/.i;

definition
  let F be unital add-associative right_zeroed right_complementable
         distributive non empty doubleLoopStr;
  let z be FinSequence of the carrier of F;
  let i be Nat;
  func LagIPoly(z,i) -> Polynomial of F equals
:: NUMBER19:def 4
     Product rpoly(len Del(z,i) |-> 1,Del(z,i));
end;

theorem :: NUMBER19:60
  for z being FinSequence of the carrier of L
    for i being Nat st not i in dom z holds
      LagIPoly(z,i) = Product rpoly(len z |-> 1,z);

theorem :: NUMBER19:61
  for z being FinSequence
    for i being Nat st z is_one-to-one_at i holds
      rng Del(z,i) = rng z \ {z.i};

theorem :: NUMBER19:62
  for z being FinSequence of the carrier of F
    for i being Nat st i in dom z & z is one-to-one holds
      LagBPoly(rng z \ {z.i}, z/.i) =
        eval(LagIPoly(z,i),z/.i)" * LagIPoly(z,i);

theorem :: NUMBER19:63
  for n,k being Nat st 1 <= k <= n
    for z being FinSequence of INT.Ring st z = idseq n
  holds
     eval(LagIPoly(z,k),In(k,INT.Ring))
    = (-1) |^ (n-'k) * ((n-'k)!) * ((k-'1)!)
      & for i being Nat st 1<= i <=n & i <> k holds
          In(i,INT.Ring) is_a_root_of LagIPoly(z,k);

theorem :: NUMBER19:64
  for n being Nat, y being n-element FinSequence of INT
     ex p being Polynomial of INT.Ring st
         for k being Nat st 1 <= k <= n holds
  eval(p,In(k,INT.Ring)) = 1 + ((k-'1)!) * ((n-'k)!) * y.k;

registration
  let i be Rational;
  reduce In(i,F_Rat) to i;
end;

begin :: Problem 127

:: Prove that there is no polynomial f(x) with integer coefficients
:: such that f(1) = 2, f(2) = 3 and f(3) = 5.
:: However, for every integer m > 1, there exists a polynomial f(x)
:: with rational coefficients such that f(k) = P.k for k = 1, 2, ...,
:: where P.k denotes the k^(th) prime number.

:: Problem 127 part 1
theorem :: NUMBER19:65
  not ex p being Polynomial of INT.Ring st
    eval(p,In(1,INT.Ring))=2 & eval(p,In(3,INT.Ring))=5;

:: Problem 127 part 2
theorem :: NUMBER19:66
  for n being Nat
     for i,z being FinSequence of the carrier of F_Rat st
       i = idseq n & z = primesFinS(n)
     for k being Nat st k < n holds
         eval(LagPoly(i,z),In(k+1,F_Rat)) = primenumber k;

begin :: Problem 129

:: Provide an example of a reducible polynomial, f(x), with integer
:: coefficients, for which the values of f(x) for m distinct positive
:: integers are all prime numbers.

theorem :: NUMBER19:67
  for n being Nat
    ex p,q being Polynomial of INT.Ring st degree p > 0 & degree q > 0 &
      for i being Nat st i <= n holds
         eval(p *' q ,In(primenumber i,INT.Ring)) = primenumber i;

begin :: Problem 130

:: Show that if f(x) is a non-constant polynomial with integer coefficients,
:: then the congruence f(x)==0(mod p) has a solution for an infinite number
:: of primes p.

theorem :: NUMBER19:68
  for L being unital well-unital non degenerated
      non empty multLoopStr_0 st L is domRing-like
  for x being Element of L
        for i being Nat st (power L).(x,i) = 0.L holds x = 0.L;

theorem :: NUMBER19:69
  for L being domRing-like commutative non degenerated
    associative add-associative right_zeroed right_complementable
    distributive Abelian well-unital unital non empty doubleLoopStr
  for p being Polynomial of L st p.0 <> 0.L
    ex q being Polynomial of L st
       len p = len q &
       q.0 = 1.L &
       (for i being Element of NAT st 0 < i holds q.i =
       (p.i) * ((power L).(p.0,i-'1))) &
       for x being Element of L holds eval(p,(p.0) * x) = (p.0) * eval(q,x);

theorem :: NUMBER19:70
  for L being unital well-unital Abelian  add-associative right_zeroed
    right_complementable left-distributive associative non empty doubleLoopStr
  for p being Polynomial of L
    for x being Element of L
      ex d being Element of L st eval(p,x) = d*x + p.0;

theorem :: NUMBER19:71
  for p be Polynomial of F_Complex st len p >= 2
    for r be Real ex e be Real st
    for z be Element of F_Complex st e < |.z.|
  holds |.eval(p,z).| > r;

:: Problem 130
theorem :: NUMBER19:72
  for f being Polynomial of INT.Ring st degree f > 0 holds
    {p where p is Prime:  ex x being Element of INT.Ring st
          eval(f,x),0 are_congruent_mod p} is infinite;

begin :: Preliminaries to Problems 132, 133 and 134.

theorem :: NUMBER19:73
  k in seq(n,m) iff n < k <= n+m;

theorem :: NUMBER19:74
  k in primeNumbers(n,m) iff n < k <= n+m & k is prime;

theorem :: NUMBER19:75
  for n1,m1,n2,m2 being Nat st n1+m1 <= n2 holds
       seq(n1,m1) misses seq(n2,m2);

theorem :: NUMBER19:76
  for n1,m1,n2,m2 being Nat st n1+m1 <= n2 holds
       primeNumbers(n1,m1) misses primeNumbers(n2,m2);

theorem :: NUMBER19:77
  seq(n,m) \/ seq(n+m,k) = seq(n,m+k);

theorem :: NUMBER19:78
  primeNumbers(n,m) \/ primeNumbers(n+m,k)
    =
  primeNumbers(n,m+k);

theorem :: NUMBER19:79
   card primeNumbers(n,m+k)
     =
   card primeNumbers(n,m) + card primeNumbers(n+m,k);

theorem :: NUMBER19:80
  (n+1 is prime implies primeNumbers(n,1)={n+1}) &
  (not n+1 is prime implies primeNumbers(n,1)={});

theorem :: NUMBER19:81
  (n+1 is prime implies card primeNumbers(n,1)=1) &
  (not n+1 is prime implies card primeNumbers(n,1)=0);

theorem :: NUMBER19:82
  for n,k st k > 0 &
     ((n+1 is prime & n+k+1 is prime) or
     (not n+1 is prime & not n+k+1 is prime))
  holds
     card primeNumbers(n+1,k) = card primeNumbers(n,k);

theorem :: NUMBER19:83
  for n,k st k > 0 &
     not n+1 is prime & n+k+1 is prime
  holds
     card primeNumbers(n+1,k) = card primeNumbers(n,k)+1;

theorem :: NUMBER19:84
  for n,k st k > 0 &
     n+1 is prime & not n+k+1 is prime
  holds
     card primeNumbers(n+1,k) = card primeNumbers(n,k)-1;

theorem :: NUMBER19:85
  card primeNumbers(1,100) = 26 &
  (for k being Nat st
    k = 0 or k = 2 or k = 3 or k = 4 or k = 9 or k = 10 holds
  card primeNumbers(k,100) = 25) &
  for k being Nat st
    k = 5 or k = 6 or k = 7 or k = 8 holds
     card primeNumbers(k,100) < 25;

theorem :: NUMBER19:86
  for n,k,p being Integer st p divides k
    holds n in multiples(p) iff n+k in multiples(p);

theorem :: NUMBER19:87
  s in seq(n,k) iff s+d in seq(n+d,k);

theorem :: NUMBER19:88
  for p,q,r,s,t being Integer st
          p divides d & q divides d &r divides d &
          s divides d & t divides d
  holds
     card (seq(n,k)  /\ (multiples(p)\/multiples(q)\/multiples(r)\/
                   multiples(s)\/multiples(t)))
  =
     card (seq(n+d,k)  /\ (multiples(p)\/multiples(q)\/multiples(r)\/
                   multiples(s)\/multiples(t)));

theorem :: NUMBER19:89
  for p,q,r,s,t being Integer st
        p divides d & q divides d &r divides d &
        s divides d & t divides d
  holds
      card (seq(n,d) /\ (multiples(p)\/multiples(q)\/multiples(r)\/
                   multiples(s)\/multiples(t)))
   =
      card (seq(n+k,d)  /\ (multiples(p)\/multiples(q)\/multiples(r)\/
                   multiples(s)\/multiples(t)));

theorem :: NUMBER19:90
  for p,q,r,s,t being Integer st
       p divides d & q divides d & r divides d &
       s divides d & t divides d
  holds
  card (seq(n,k*d) /\ (multiples(p)\/multiples(q)\/multiples(r)\/
                   multiples(s)\/multiples(t)))
  =
  k*card (seq(0,d) /\ (multiples(p)\/multiples(q)\/multiples(r)\/
                   multiples(s)\/multiples(t)));

theorem :: NUMBER19:91
  4 = card (seq(6*n,6) /\ (multiples(2)\/multiples(3)))
    & {6*n+1,6*n+5} = (seq(6*n,6) \ (multiples(2)\/multiples(3)));

theorem :: NUMBER19:92
  22 = card (seq(0,30) /\ (multiples(2)\/multiples(3)\/multiples(5)));

theorem :: NUMBER19:93
  c = card (seq(n,100) /\
              (multiples(2)\/multiples(3)\/multiples(5)))
  implies
    c >= 72 & (c = 72 implies n mod 30 = 9 or n mod 30 = 10);

theorem :: NUMBER19:94
  c = card (seq(n,100) /\
           (multiples(2)\/multiples(3)\/multiples(5)\/multiples(7)))
  implies
    c >= 75 &
   (c = 75 implies
       n mod 210 = 9 or n mod 210 = 10 or n mod 210 = 99 or n mod 210 = 100);

theorem :: NUMBER19:95
  0 <= n < 2*3*5*7*11 implies
    76 <= card (seq(n,100) /\
     (multiples(2)\/multiples(3)\/multiples(5)\/multiples(7)\/multiples(11)));

theorem :: NUMBER19:96
   11 <= n implies card primeNumbers(n,100) <= 24;

theorem :: NUMBER19:97
  0 <= n < 2*3*5 implies
    14 <= card (seq(n,21) /\
             (multiples(2)\/multiples(3)\/multiples(5)));

theorem :: NUMBER19:98
  5 <= n implies card primeNumbers(n,21) <= 7;

begin ::Problem 132

:: The only case' where the sequences k+l, k+2, ..., k+100
:: contain maximal numbers of primes (26) is when n = 1.

theorem :: NUMBER19:99
  card primeNumbers(1,100) = 26 &
    for n being Nat st n <> 1 holds card primeNumbers(n,100) < 26;

begin ::Problem 133

:: The sequences k+l, k+2, ..., k+100 contain exactly 25 prime numbers
:: in only six cases: k = 0, 2, 3, 4, 9 and 10.

theorem :: NUMBER19:100
  {n where n is Nat: card primeNumbers(n,100) = 25} = {0,2,3,4,9,10};

begin :: Problem 134

:: The sequences k+l, k+2, ..., k+21 contain exactly 8 prime numbers
:: in only three cases: when k = 0, 1 or 2.

theorem :: NUMBER19:101
  {n where n is Nat: card primeNumbers(n,21) = 8} = {0,1,2};


Messung
CHZG
9710010098

¤ Dauer der Verarbeitung: 0.6 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*Bot Zugriff