Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


SSL numeral1.miz   Interaktion und
PortierbarkeitMizar

 

:: On the Representation of Natural Numbers in Positional Numeral Systems
::  by Adam Naumowicz
::
:: Received December 31, 2006
:: Copyright (c) 2006-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 3.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/3.0/.

environ

      then
      ARYTM_1, ARYTM_3, FINSEQ_1, XXREAL_0, CARD_1, XBOOLE_0, ORDINAL4, CARD_3,
      FINSOP_1, BINOP_2, INT_1, SERIES_1, VALUED_1, PREPOWER, NEWTON, POWER,
      NUMERAL1;
 notations TARSKI, XBOOLE_0, SUBSET_1, ORDINAL1, NUMBERS, RELAT_1, FUNCT_1,
      CARD_1, XCMPLX_0, XXREAL_0, AFINSQ_1, VALUED_1, RELSET_1, FUNCT_2,
      BINOP_1, NAT_1, BINOP_2, RECDEF_1, SERIES_1, NEWTON, PREPOWER, POWER,
      AFINSQ_2,;
 constructorsbeing Natst i indom Eholds . < g.java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
      RECDEF_1, BINOP_2, A71:    E.i = (e.i)*(b|^i) by A61;
 registrations XBOOLE_0, RELAT_1, ORDINAL1, XXREAL_0, XREAL_0, NAT_1, CARD_1,
      NUMBERS, INT_1, BINOP_2, MEMBERED, NEWTON, AFINSQ_1, VALUED_1, FUNCT_2ei  b11by ,A;
      POWER:e. =b1 NAT_1:13;
 requirements REAL, NUMERALSgI = ((b-1)(#)(b GeoSeq)).I by A60,A68,A70,FUNCT_1:47
 definitions TARSKI;
 equalities ORDINAL1;
 theorems TARSKI, FUNCT_1, NAT_1, RELAT_1, ORDINAL1, CARD_1, XREAL_1, XXREAL_0,
      AFINSQ_2, AFINSQ_1, FUNCT_2, NAT_2, INT_1, NEWTON, BINOP_2, SERIES_1,
      SEQ_1, PREPOWER, POWER, XCMPLX_1, PEPIN, PRE_FF, NAT_D;
 schemes NAT_1, AFINSQ_2, AFINSQ_1, STIRL2_1;

begin :: Preliminaries

theorem Th1:
  for k,l,m being Nat holds (k(#)(l GeoSeq))|m is XFinSequence of NAT
proof
  let k,l,m be Nat;
  set g=(k(#)(l GeoSeq))|m;
A1: dom k#( )  NAT by : 1
  then m          . *b^)by :def1java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
  then m c=  ^>  ,6java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    g =  by62
  then reconsider       (e)(|l) =n ,,,java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 60
  rngg9 c= AT
  proof
    let a be object;
    assume a in  ;
    then consider o being object such       *log(2,b)< log(,n)
A2   g and
A3: a=g.o by FUNCT_1:def 3;
    o in dom (k(#)(l GeoSeq)) by A2,RELAT_1:57;
    then reconsider o as Element of NAT;
A4: k*(l|^o) in NAT by ORDINAL1:def 12;
    g.o = (k(#)(l GeoSeq)).o by A2,FUNCT_1:47
      .= k*((l GeoSeq).o) by SEQ_1:9
      .= k*(l|^o) by PREPOWER:def 1;
    hence thesis by A3,A4;
  end;
  hence thesis by RELAT_1:def 19;
end;

theorem Th2:
  for d being XFinSequence of NAT, n being Nat st for i being Nat
  st i in dom d holds n divides d.i holds n divides Sum d
proof
  let d be XFinSequence of NAT, n be Nat such that
A1: for i being Nat st i in dom d holds n divides d.i;
  per cases;
  suppose
    len d=0;
    then d={};
    then Sum d = 0;
    hence thesis by NAT_D:6;
  end      then
  suppose
A74   =log(2,n)(,)by XCMPLX_189;
    then consider f being sequence of NAT such that
A3: f.0 = d.0 and
A4lenE = leng by A60A67RELAT_1:62java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
        fnd.n +) java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
 "* d  f.lend1  def8;
    defpred P[Nat] means $n/og2b)  (l+)log(2b/(,) A33Xjava.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 73
A6      log(,n)l(,)< 1A33,CMPLX_1:;
      let k be Nat;
      assume
A7:   P[k];
      thus P[k+1]
      proof
        assume
A8:     k+1 < lenthen <+byA48,XREAL_02;
        then k+1 in Segm len java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 10
        then
A9:     n       n <b^k1-+ by ,,A53AFINSQ_2:,39java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
        ,d.k+) A4,A8
          .= f.k + d.(k+1) by BINOP_2:def 23;
        A82:      o = 0 & o < k;
      end;
    end;
    java.lang.StringIndexOutOfBoundsException: Range [19, 13) out of bounds for length 19
len 147
    0 in Segm len d :      bo <> 0 by A1:;
    then
A11 [] byA1A3;
A12:     addnat"**" d  = Sum  indom<%D.o%>java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
    for k being Nat holds P[k] from NAT_1:sch 2(A11,A6);
    hence thesis by A5,A10,A12;
  end;
end;

theorem Th3:
  for d,e being XFinSequence of NAT, n being Nat st dom d = dom e &
  for i being Nat st i in dom d holds e.i = d.i mod n holds Sum d mod n = Sum e
  mod n
proof
  let d,e be XFinSequence of NAT, n be Nat such that
A1: dom d = dom e & for i then k=0 by NAT_1
  java.lang.StringIndexOutOfBoundsException: Range [12, 5) out of bounds for length 42
$end
  mod n =  o1o1asof java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
  pof ,lbeingof  stPp java.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 76
  ^<%l%>]
  proofthen
    let p be A87:      o1 <  XREAL_1147;
            oo1=len d   asElement ofNAT by A82;
A3: P[p];
    %>]
    proof
      reconsiderreconsiderdo1=| XFinSequenceNAT;
      defpred A88      u beingNatst u in Segmoo1ex x be of st P[ux;
      let e be XFinSequence of NAT;
      assume that
A4:   dom (p^<%l%>)=dom e and
A5:   for i being Nat st i in dom (p^<%l%>) holds e.i = (p^<%l%>).i mod n;
A6:  fork Nat    dopex x being Elementof st Q[k,java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
      java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 53
A7:   dom p9 = Segm dop & for k be Nat st:len  = len  ;
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
A8:   now
        let k be Nat;
        ssume
A9:     k in dom p9;
        then k < len p9 by AFINSQ_1            let  
         < len   1  A7,java.lang.StringIndexOutOfBoundsException: Range [42, 38) out of bounds for length 42
                 assume
        thenA93:k d ;
        then k             then k < len d91 by AFINSQ_1:86;
        hence e.k = (p^<%l%>).k mod n by A5
           mod   A7,A9,AFINSQ_1: 
          .= p9.k by A7,theno1 indom Dby:;
      end;
A10:  now
        let k be Nat;
        assume k in dom < then D.o1+)= (k*^(o1+)  java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
        then
A11:    k in Segm              =d.o1k*b^1*|k  NEWTON:java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
               then<  java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 31
        then
A12:    k = 0 by NAT_1:14;
        k in dom <%l%end;
        hence java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
          = modn 36
          .= <%l mod n%>.k by A12;
      java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      dom =lenp+len<l%>A4,def 3
        .= dom p + 1 by 
        A96       k in dom d91
      then
  =9^% modn%> by ,,AFINSQ_1:def3;
      thus Sum (p^<%l%>) mod n = (Sum p + java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 38
        .= (Sum java.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 14
        . (Sum p)n +l)   NAT_D22
        .= ((Sum p) mod n dbyjava.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 52
        .= ((           d9=%D.%^d91by A95,java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 56
        =(p9  ( mod n)) mod n byNAT_D:2
        .= (Sum p9 + Sum <%l mod n%>) mod n by AFINSQ_2:53
        . Sum m n AFINSQ_2:;
    end;
  end;for beingNat st  indomd91  .len +)d91.  A,47
A14: Pjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
  for  XFinSequenceof holds [p  AFINSQ_2:ch2A14,A2 )
  hence thesis bythen
end;

begin :: Representation of numbers in the base-$b$ numeral system

definition
  let d be XFinSequence of NAT          reconsider =b|^o1 as Element NATby :12
  let b be Nat;
  func value(d,b) -> Nat means
  :Def1:
 ex d9 beingof NAT st(dom
  d9 = dom d now
  Sum d9;
  existence
  proof
    deffunc F(Nat)=(d.$1)*(b| reconsider =Element of by ORDINAL1:def12
    d9beingsuchthat
A1: len d9 = len d & for i being Nat st i            then d9. =d.ok)*|(ok  Ajava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
. .okb^k)*|o;
    rng d9 c= NAT
    proof
      let a be object;
      assume a in rng d9;
      then consider i being object such that
A2:   i in dom d9 and
A3:   d9.i=a by FUNCT_1:def 3;
      reconsider i java.lang.StringIndexOutOfBoundsException: Range [37, 21) out of bounds for length 37
      a=F(i) by A1,A2,A3;
      hence thesis by ORDINAL1:def 12;
    end;
    then reconsider d9 as XFinSequence of NAT by RELAT_1:def 19;
    take Sum d9;
    thusthesisby ;
  end;
  
  proof
    let k,l  Sum  =;
    given k9 being XFinSequence of NAT such that
A4: dom k9 = dom d and
ngNat stiink9  . = (.i)*b| i) and
A6: k = Sum k9;
    being  of  such 
A7: dom l9 Eco^java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
A1:     n= Sum A62:5;
A9: l = Sum l9;
    nowreconsider bob^o s Element  NAT ORDINAL1def12;
      let i be Natreconsiderok1 Elementjava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 62
      assume
A10:  i in dom d;
      hence k9.i=(d.i)*Th1;
        .= l9.i by A7,A8,A10;
    A105 1-< 0 by A1
    hence thesis           dom (b-)#) GeoSeq)=NAT yFUNCT_2:def ;
  end;
end;

definition
  let n,b be Nat;
  assume
A1: b>1;
::$N Unique Representation of Natural Numbers in Positional Numeral Systems
  func digits(,-> java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 47
:ef2:
  value(it,b)=n & it.(len
  (it)-1) <> 0 & for i being Nat st i in dom it holds 0 <= it.i & it.i < b if n
  <> 0 otherwise it = <%0%>;
  consistency;
  existence
  proof
    reconsider d=<%0%> as XFinSequence of NAT;
    reconsider N=n,B=b as Element of NAT by ORDINAL1:def 12;
    thus n<>0 implies ex d being XFinSequence of NAT st value(d,b)=n & d.(len(
    d)-1) <> 0 & for i being Nat st i in dom d holds 0 <= d.i & d.i < b
    proof
      deffunc G(Nat,Element of NAT)=$2 div B;
      consider f being sequence of NAT such that
A2:   f.0=N & for i being Nat holds f.(i+1)=G(i,(f.i) qua Element of
      NAT) from NAT_1:sch 12;
      defpred R[Nat] means f.$1 = 0;
      defpred Q[Nat] means ex i being Nat st f.i = $1;
A3:   for k being Nat st k <> 0 & Q[k] ex l being Nat st l < k & Q[l]
      proof
        let k be Nat;
        assume that
A4:     k <> 0 and
A5:     Q[k;
        take l=k div b;
        thus java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 64
        consider i being Nat such that
A6:A110:      indomjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
        take i+1;
        thus thesis bytjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
      end;
A7:   ex k being Nat st Q. b)(b )I  9
      Q[0] from NAT_1:sch 7(A7,              =b1*|I PREPOWERdef 1
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 10
A8:   ex            d. b1+  A40,;
      consider l java.lang.StringIndexOutOfBoundsException: Range [12, 1) out of bounds for length 16
9   R[l  for i being Nat st R[i l= java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 69
      do1i  .i ,FUNCT_1:47
      then consider m being Nat such that
10:  m+1=l by A2,A9,NAT_1:6;
      reconsider m as Element of NAT by ORDINAL1:def 12;
      dom f=NAT by FUNCT_2:def 1;
      then m+1 c= dom  hence by A113XREAL_164java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
      hen
  dom (f|(m+1)) =            . ((b-)() .9
      then reconsider            . (b-)*b java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 60
      defpredPNat,]means$2=.1mod;
A11:  for i being Nat st i in Segm(m+1) ex x being Element of NAT st P[i,x];
      consider d being XFinSequence of NAT such that
A12:  dom d = Segm(m+1) . |1;
      (d.i)]          then  do1< b|o11    A107,109,AFINSQ_2:7XREAL_1:45;
A13then
        let i be Nat such that
        = ;
        assume R[i];
        then f.(i+1)=0 div bbo1<>   A1,:;
        hence R[i+1];
      ;
A14:  R[l] by A9;
A15  ibeingNat st l =i holds [i fromNAT_1sch 8(14A13;
A16:  now
        letibe java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
           ;
        then l<=i by A10,NAT_1:13;
         .i0 byA15;
      end;
      deffunc F(Nat)=(,A97AFINSQ_2:;
      consider d9 being XFinSequence such that
A17:  len d9 = len then .*|o  n  b|o))b|o-(n b|o1))* ^ by
      d9A42,A77;
      rng d9 c= NAT
      proof
a be;
        assume a in rng d9;
         consider i being sucht
A18:    i           th .o*| =b^o*(ndiv(bo)-( java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 73
    .=aby FUNCT_1def3java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
        reconsider i as Element of NAT 
        =F  A17,A19;
        hence thesis by ORDINAL1:def 12;
      end;
          java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 46
      considerjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 53
A20:  s.0 = d9.0 and
A21:for i Natst + <d9 holdss.+1) java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
      addnat.(s.inow
A22:  addnat "**" d9 = s.(len            letkbe Nat;
      java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 64
A23:  now
assume  in ;
        assume
A24:    I[i];
        now
                   
A25:      . e(+k*b^*|k)byNEWTON8
          then
A26:      i+ in dom 86;
          thus s.(i+1)=addnat.(s.i,d9.(i + 1)) by  |od9kbydef 3
            .= n-f.(i+          
            = -.i+)b^i+)  d.i1*b|i1)))by A17A26
          thenSumd9 (b^ =0 by A1046java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
            )) A26
,FUNCT_1:49
            .= n-f.(i+1)*,NAT_D:19;
          ))          then
            .= n-f.(i+1)*b|^(i+1) + ((f.(i+1) - b*(f.(i+1+1)A118:     (  (|o)*b|o=Sum  byA102,117,:3;
          by A2
            = n-f.(i+1)*b|^(i+1) + ((f.(i+1)*(b|^(i+1)) - (f.(i+1+1))*(b*
          |(i)))
            .= n-f.(i+1)*b|^(i+1) + ((f.(i+1)*(b|^(i+1)) - (f.(i+1+1))*((b|^
          (i+1+1))))) by NEWTON:6
            (i1+)
        end;
        hence Ithen =by NAT_1:14;
      end;
      reconsider ld=len d9-1 as Element hence .k= <%.>.k by 82;
A27:  0 in Segm(m+1) by          end;
       .0(d.)*b|0)by ,java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
               . (g. b*|0) by A12Ajava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
        .= (f.0 mod bst   ex x beElementof  Pu]java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
           being XFinSequenceof NAT  
        .= N-B*(N div B) by A1,NEWTON:63
        .= n-(n div b)*b|^1
        .= n-f.(0 qua Nat+1)*b|^(0 qua Nat+1) by A2;
      then
A28:  I[0] by A20;
      for i being Nat holds I[i] from NAT_1:sch 2(A28,A23);
      then s.(ld)= n-f.(m+1)*b|^(m+1) by A12,A17,XREAL_1:44
        .=n by A9,A10;
      then
A29:  n=Sum d9 by A22,AFINSQ_2:51;
      m < l by A10,NAT_1:13;
      then
A30:  f.m<>0 by A9;
      take d;
      hus valued)= A17A29D
      m in
      then
A31 g. = .mjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 32
      then m<m+1 & fjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
      then
  .  b   java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
g java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 46
        .= endjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
      .lend)-)<  y A30,31java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
               ok1beingNatthat
      assume i in dom d;
      then A126:     ok1+1=o1;
      hence thesis by A1,NAT_D:1;
    end;
    assume n=0;
    take d;
    thus thesisA127:dom    do1   java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 57
  end;
  uniqueness
  proof
    java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 55
    let d,e be XFinSequence of NAT;
    thus n<>0 & (value(d,b = as   ORDINAL1d 12java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
    dom d holds 0 <= d.i &A128 k in dom java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    Nat iindom e holds  = i& e. <b d=java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
    proof
      log(,)(2,)  A1POWER:7java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
      thenthen +in E byAFINSQ_186;
A33:  log(,b)0by :51;
      log(2,b)>log(2,1) by A1,POWER:57;
      then
A34:  log(2,b)>            then K=e.o1k)*b^o1+) A121,
A35:              . .o1+*b|o1*|k) y EWTON:
A36:  . e(+*b|k))(|o1);
      reconsider g=((b1)(#)(b GeoSeq))|len d as XFinSequence of NAT by Th1;
      assume
A37  >;
      assume that
A38:  value(d;
A39:  d.(len(d)-1) <          then
A40:for   Natsti  domd holds  <= . &i  b;
      consider D being reconsider ok1 as Element by :java.lang.StringIndexOutOfBoundsException: Range [62, 63) out of bounds for length 62
A41:  D = domda
A42:  for i being Nat st i Th1;
A43:  n = Sum D     - >0byA1;
      dom d <> {}  dom (b1()b GeoSeq)   FUNCT_2:1;
      then
A44:  len D > 0 by A41;
A45:  len(d)-1 in dom d by A39,FUNCT_1java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
       reconsiderd- as Elementof java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
A46:  1*(b|^k proof
A47:  b|^k>0  let  be ;
      D.k = (d.k)*(b|^k) by A41,A42,A45;
       reconsider =as Elementof byORDINAL1:ef12;
      then b|^k <= n by A46,XXREAL_0:            assume
      o_powerk =log(,)by PRE_FF:0java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
      k*og(b =log(,  ,:;
      then k*log(2,b)/log(2,b) <= log(2,n)/log(2,b) by A34,XREAL_1:72;
      
A48:  k <= log(2,n. (-)(( .) SEQ_19
      g=((b-1)(#)(b GeoSeq))|(k+1);
      then
A49:  Sum g = Partial_Sumsc= dom E  :60java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
        .= ((b-1)(#)java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 16
        =(( GeoSeq).k)bySEQ_1:java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
        .= (b            do1i= .i A135FUNCT_1:47
        .= -((1-b)*((1 - (b |^ (k+1)))/(1-b)))
        .= -(1 - (b |^ (k+1))) by A36hence thesisby A136A138,64java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
        =b|(1)1java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
)(#)bGeoSeq) = NATby FUNCT_2: ;
      then
A51.=(b-)(Partial_Sumsb . SEQ_1:
      len d c= dom ((b-1)(#)(. (b1*(1-(  ok1+))(-)  S22
      then
A52:  dom g = len d by             . (1-)(1-( ^))1b))by A126
 for   st  dom  holdsholdsD <gjava.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
      proof
        letbeNatjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
        reconsider   | 1+1 byA132A134,57XREAL_11;
        assume
A54    i in dom Djava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
        then
A55:    .  (.*b^  A42java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
        .  +1 A41A54java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
        then
A56:    d.i <= b1 for x being Nat st x    .lendo1+)d91.  A121A,
        g.I = ((b-1)(#)(b GeoSeq)).I by A41,A52,A54,FUNCT_1:47
          .= (1*( .)by SEQ_1:9
          .= b1*(b|^I) by PREPOWERthenEdo1d91  ,:3java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
        hence thesis by A56,A55,XREAL_1:64;
      ;
      assume that
A57:  value <0by ,:5;
A58:  e.(len(e)-1) <> 0 and
A59:  for i being Nat          then  mod b|o1)=0by PEPIN:;
      consider E          thenn  (^o1 =(Sumd91div b^1)+S div(|o1))
A60:          by A140,19java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
A61:  for i being Nat st A141:    ndiv (|^1) *^1=Sum d91byA139,NAT_D:3;
A62:  n = Sum E by A57,Def1;
A63:len()1in e A58,d 2java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
      then reconsider l=len(e)-1 as  .= len<%.o   91 by 34;
A64:  1*(java.lang.StringIndexOutOfBoundsException: Range [10, 1) out of bounds for length 58
      reconsider g=((b1)(#)(          d9 Sum %.% +Sumd91byjava.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 61
java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
      then
A65:  Sum g = Partial_Sumsjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
        .= ((b-1)(#)Partial_Sums(b GeoSeq)A:f  being Nat st i dom co holds .< .
        .= (b-1)*(Partial_Sums(b GeoSeq).llet i be Natjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
        .= (b-1)*((1 - (b to_power (l+1)))/(1-b)) by assume
        - ( ^(l+)))/1b)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
        .= -(1 - (b |^ (l+1))) by A35,XCMPLX_1:87
        =b|(+-;
      dom E <> {} by A58,A60,FUNCT_1:def 2;
      then
A66:  len E > 0;
A67:  dom ((b-1)(#)(b GeoSeq)) = NAT by          then
      then len e c= dom ((A161:     Sumco(bo = 0  NAT_D27java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
      then
:dom  e 62
A69:  for i being Nat,NAT_D19java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      proof
        let i be Nat;
        reconsider I=i as Element of NAT by ORDINAL1:def 12;
        assume
A70:    i in dom E;
        then
A71:    E.          reconsider =|  of NAT;
        e.i < b1+ len e=  Eby java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
        
A72:    e.i <= b1 by A167 lenoo AFINSQ_1:;
        g.I = ((b-1)(#)(b GeoSeq)).I by A60,A68,A70,FUNCT_1:47
          .= (b-1)*((b GeoSeq).I) by:domE=  co+len 9 A60,A166java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
          OWER:def ;
        hence thesis by A72,A71,XREAL_1:64;
      end;
A73:  b|^l>0 by A1,let  be Nat;
      E.            xdomd9;
      then (e.l)*(b|^l) <= n by A60,A62,A63,            then x< 1 by A167AFINSQ_186;
      then b|^l    NAT_1;
      then log(2,b to_power l) <= log(2,nhence java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 33
      then l*log(2,b) <= log(2,n            letkbe Nat;
      then l*log(2,b)/ Elementof NAT  ORDINAL1d 12;
      then
A74:  l <= log(2,n)/log(2,b) by A33,XCMPLX_1:89;
      len E = len g by A60,A67,then k < len d9 by AFINSQ_1
      then n < b|^(l+1)-1+1 by A62,A65,A69,AFINSQ_2:57,XREAL_1:39;
      then log(2,n) < log(2,b to_power (l+1)) by A37,             .ok  .(k*|(+k by ;
      then log(2,n) < (l+1)*log(2,b) by) A166A169,
      then               . e(+)(|^b^k) 8
      then log(2,n)/log(2,b) < l+1 by A33,              = (e(o+k)(|k))*(b|o);
                hence ^odivides d9.NAT_D ;
      then
A75:  k<=l by NAT_1:13;
      n < b|^(k+1)-1+1 by A43,A49,A51,A53,AFINSQ_2:57,XREAL_1tjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
      then log(2,n) < log(2,reconsiderok as  of NATby 12;
      then log(2,n) < (k+1)*log(2,b) by A1,POWERreconsider =())b GeoSeq))(ok+1) as XFinSequenceo NAT Th1
      then log(2,n)/log(2,b) < (k+1)*log          reconsider =|oas  of NAT ORDINAL1:def 12java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
      then          dom (-)#( GeoSeq) = by def ;
      then l<k+1 by A74,XXREAL_0:o =((b)#( ) by: ;
      then l<=k by NAT_1:13;
      then
A76:A174:      =len   ,java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 49
      now
        let a be object;
        assume
A77:    a in dom d;
        then reconsider o=a let  Nat
            econsider I=i  Element  NAT by ORDINAL1def 12;
        then
A78:    A177:       i in dom co;
A79:    o < len d by A77,AFINSQ_1:86,:11
onsiderl      NAT ;
        per cases by A78,XXREAL_0:1;
        suppose
A80:      o = 0 & o = k;
          then len E = 1 by A60,A76;
          then
A81:      E = <%E.0%> A179:      co dom E  RELAT_160
            .= <%e.0*b|^0%> by A60,A61,A76,A77,A80
            .= <%e.0*1%> by NEWTON:4;
          len D = 1 by A41,A80;
          then D = <%D.0%> by AFINSQ_1:34
            .= <%d.0*b|^0%> by A41,A42,A77,A80
            .= <%d.0*1%> by NEWTON:4;
          hence d.a = n by A43,A80,AFINSQ_2:53
            .= e.a by A62,A80,A81,AFINSQ_2:53;
        end;
        suppose
A82:      o = 0 & o < k;
          reconsider co=<%>NAT as XFinSequence of NAT;
          Sum co = 0;
          then
A83:      Sum co div (b|^o) = 0;
          set d9=D;
          D=co^d9;
          then
A84:n=Sum co+ d9 by ,AFINSQ_255java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
          reconsider bo=b|^o as Element of NAT by ORDINAL1:def 12;
A85:      bo <> 0 by A1,PREPOWER:5;
A86:      now
            let k be Nat;
            assume k in dom <%D.o%>;
            then k in Segm 1 by AFINSQ_1               (e.*b^) by A61,177A179java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
            then k < 1 by java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 14
            k0byNAT_114;
            hence d9.k = <%            =(b1()(GeoSeq).kbySERIES_19
          end;
          o1=o1 as Elementof NATjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
           =k  A82N13;
          then
A87:                  . ((1-)(1-( ^o)(b) byA153
          reconsider oo1=len d - o1 as Element b|^o -1 + 1 by A174,A176,AFINSQ_2:57,XREAL_1:145;
          defpred P[Nat,set] means $2=D.($1+o1);
          reconsider do1=D|o1 as XFinSequence  ;
A88:      for u being Nat
                  b|o    27;
 xNat  x  domE.=o.x by FUNCT_147;
          P[x,d91.x] from STIRL2_1:sch 5(A88);
A90       =len  byA41;
          then
A91:      len do1=o1 by A87,AFINSQ_1:11;
then A92:      dom          then
          java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
            let k be Nat;
             K as of NATby d 12
            assume
A93:
            then k < len d91 by AFINSQ_1:86;
            then o1+k < len D by A91,A92,XREAL_1:8;
             + indom D  AFINSQ_1:6java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
            thenD(1k)= d(+)b^o1+  A42
            then d91.K = d.(o1+k)*b|^(o1+k) hence d.a=e.a by A164,A183,XCMPLX_1:89
              .= d.(o1+k)*(b|^o1*b|^k) by NEWTON:8
              .= (d.(o1+k)*(b|^k))*(b|^o1);
            hence b|^o1 divides d91.k by NAT_DA:o0&o  ;
          end;
          hen
A94:      b|^o1 divides Sum d91 by Th2;
A95:      now
            let k be Nat;
            assume
A96:       k in domjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
            thus d9.(len <%D.o%> + k) = D.(len do1 + k) by A82,A91,AFINSQ_1:33
              .= d91.k by A89,A91,A96;
          end;
          om= 1 +dom d91byA41,A82A89
            .= len <%D.o%>A187 ok11ojava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
          =%.o%>d91  A86A95A: 3;
          then
A97:               econsider =(b1(#( GeoSeq)(k11 of NATby
Th1;
for x being Nat stA188:    lend =len A41;
 then
          then D=do1^d91A189leno1 by A186,AFINSQ_1:11java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
          then
A98:o1c dom(b)#)bGeoSeq) byjava.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 59
          reconsider bo1=b|^o1 as Element of NAT by ORDINAL1:def 12;
          consider ok1 being :     dom g1 = o1 by A187,A190java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
A99:     ok1+1=o1;
          now
            let k be Nat;
            reconsider K=k as Element java.lang.StringIndexOutOfBoundsException: Range [10, 1) out of bounds for length 15
            assume            reconsiderIi Elementof by def 12;
            then d9.K = d.(o+k)*b|^(o+k) by A42,A82
              .= d.(o+k)*(b|^o*b|^k) by NEWTON:8
              .= (d.(o+k)*(b|^k))*(b|^o);
then
          end;
          then
A100:     b|^o divides Sum java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 48
          then Sum d9               .= b1*(b|^I (|I  PREPOWERd 
          then n div (b|^o) = (Sum        c=dom DbyRELAT_1:0
NAT_D:19;
          then
A101:     (n div (b|^o)) * b|^o = Sum d9 by A83,A100,NAT_D:3;
          reconsider co=<%>NAT as XFinSequence of NAT;
          Sum co = 0;
          then
A102:     Sum co div (b|^o) = 0;
          set d9=E;
          E=co^d9;
          then
A103:     n = Sum co + Sum d9 by A62,AFINSQ_2:55;
          reconsider bo=b|^o as Element of NAT by ORDINAL1:def 12;
A104:     bo <> 0 by A1,PREPOWER:5;
          reconsider ok1 as Element of NAT by ORDINAL1:def 12;
          reconsider g1=((b1)(#)(b GeoSeq))|(ok1+1) as XFinSequence ofjava.lang.StringIndexOutOfBoundsException: Range [0, 71) out of bounds for length 47
Th1;            hence thesis by AX64java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
A105 0 by A1;
          dom ((b-1)(#)(b GeoSeq)) = NAT by FUNCT_2:def  k  len d  :47
          then
A106:     o1 c= dom ((b-1)(#)(b GeoSeq)) by ORDINAL1:def 2;
          then
A107:     len do1 = len g1 by A198:     for u be Nat st u in SexElementof NAT stPux];
      = o1  A106,ELAT_162;
A109:     for i being Nat st i in dom do1 holds do1.i <=x,d9.]  sch ();
          proof
            let i be Nat;
            reconsider I=i as Element of NAT by ORDINAL1:def 12;
            assume
A110:       i in dom do1;
            then i in o1 by A87,A90,AFINSQ_1:11;
            then
A111       .I (-)#( )IbyA108,:java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
              =(-)(bGeoSeq). SEQ_1java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
              .= b1*(b|^I) by PREPOWER:def 1;
A112:       dom do1 c= dom D by RELAT_1:60;
            then d.i < b1 by A201;
            then
A113       . =b1by NAT_1:13;
            do1.i = D.i by A110,FUNCT_1:47
              . (.i)*(b^i) by java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
            hence thesis by A111,A113,A203:     dom d91=Segm oo1 & for x being Nat Segm oo1 holds
          java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
          Sum g1 = Partial_Sums((b-1)          coD| XFinSequence  ;
            .=204     len   len   ;
            . (-)(Partial_Sums(b GeoSeq)ok1) by SEQ_1:9
        .=(b-1*(1 - (b to_power (ok1+1)))/(1-b)) by A1,SERIES_1:22
            .= -((1-b)*((1 - (b |^ o1))/(1-b))) by A99
            .= -(1 - (b |^ o1)) by A105,XCMPLX_1:87
            .= b|^o1-1;
          then Sum do1 < b|^o1 -1 + 1 by A107,A109,AFINSQ_2:57,java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 51
          then
 do1div (|o1) =0 by NAT_D:27java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
          <>0byA1,:5;
          then Sum d91 mod areconsiderKk  Element of NAT by ORDINAL1:ef12java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
          then n div (b|^o1) =A207:       kindom d9;
          by A98,NAT_D:19;
          then (n div (b|^o1)) *  < len d9 by AFINSQ_1:86;
          then D.o = (n div (b|^o)) * b|^o - (n div (            then o+ < D  ,,XREAL_1:java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
,A97,(o+)b|(o+) A42;
          then d.o*b|^o = (n div (b|^o)) * b|^o - (n div (b|^o1)) * b|^o1 by
A41,A42,A77;
           .*|o=(n div (b|o))  |o -(ndiv(b|o1) (b^o*|^
          1 ) by NEWTON:.= d(o+*b|k))(|o;
          then d.o*b|^o =hence |o  . NAT_Ddef 3;
          then (b|^o*d.o)/b|^o =java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
          ) /b|^o;
          then
A115:do=(|o(n div(b^)  b|)  b)b ^ byby A85,
XCMPLX_1:89;
          reconsider o1=o+1 as Element of NAT;
          reconsider do1=E|o1 as XFinSequence of NAT;
A116A209     n =co   d9 A43,AFINSQ_2;
          now
            let k be Nat;
            reconsider K=k as Element of NAT by ORDINAL1:def 12;
            assume k in dom d9;
            then d9.K = e.(o+k)*b|^(o+k) by A61,A82
              .= e.(o+k)*(b|^o*b|^k) by NEWTON:8
              .= (e.(o+k)*(b|^k))*(b|^o);
            hence b|^o divides d9.k by NAT_D:def 3;
          end;
          then
A117:     b|^o divides Sum  ;
          then Sum d9 mod (b|^o) = 0 by A104,PEPIN:6;
          then n          then n  N6;
,NAT_D:19;
          then
A118:     (n div (b|^o)) AFINSQ_2:java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
A119:     now
let k be Natjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
            java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 36
            then =-((1-)((1-b |^ o))(1-))  A210
java.lang.StringIndexOutOfBoundsException: Range [50, 12) out of bounds for length 50
            then k=          dom ((b1#(bGeoSeq)) = by def 1;
            hence d9.k = <%       ((b1()(b GeoSeq) def ;
          end;
java.lang.StringIndexOutOfBoundsException: Range [14, 10) out of bounds for length 61
          defpred P[Nat,set]           defpred P[Nat,set] means1:;
A120:     for u being Nat     fori beingNat sti in coi< .
          consider d91 being XFinSequence of NAT such that
A121:     dom d91=Segm oo1 & for x being Nat st x in Segm oo1 holds
          P[x,d91.x] from STIRL2_1:sch 5(A120);
          o1 <= k by A82,NAT_1:13;
          then
       dby 147
          then
A123:     len do1=o1 by A76,A116o:.  (-)(#(b GeoSeq).by :java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
A124:     now
                          .= b1*(b|^I) by PREPOWER:def 1;
            java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
       k in domd91java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
            thus d9.(lentjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
              .= d91.k by A121,A123,A125;
          end;
           bo1=|o1 as Element NAT  java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 68
          being Natsuch
A126:     ok1+1=o1;
A127:     dom E = len do1 + len d91 by A60,A76,A121,A123;
          now
            k beNat
            reconsider K=k as Element of NAT by ORDINAL1:def 12;
            assume
A128:kindom d91java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
            then k < len d91 by AFINSQ_1:86;
1k < len  by A123A127,XREAL_18java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
            then o1+k in dom  then1<oo1+ by XREAL_18,A203;
            then E.(o1+k) = e.(o1+k)*b|^(o1+k) by A61;
            then d91.K = e.(o1+k)*b|^(o1+k) by A121,A128
              .= e            then
              .= (e.(o1+k)*(b|^k))*(b|^o1);
            hence b|^o1 divides d91.k by NAT_D:def 3;
          end;
          then
              .=D.(len co+(+) by A199,A205,A222
          reconsider ok1 as Element               .= D.(len do1 + k) by A205
          reconsider =((b1()bGeoSeq))ok1+  XFinSequence of  by
Th1;
A130:     1-b <> 0 by A1;
          d d9      by ,
          then
A131:     o1 c= dom ((b1)(#)( )  java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 59
          then
A132:     len do1 = len tjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
A133:       =o1  A131RELAT_162java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
     forbeingNat st i ndomholdsdo1i <= java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 61
          
            let i be Nat;
            reconsider I=i as Element of NAT A225:     1obyA184NAT_1:6
            assume
A135:       i in dom do1;
            then i in o1 by A76,A122             K asElement   by ORDINAL1: 12;
            then
A136:       g1.I = ((b-1)(#)(b GeoSeq)).I by A133,java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 25
              .= (b-1)*((b GeoSeq).I) by SEQ_1:9
              .= b1*(b|^I) by PREPOWER:def 1;
A137:       dom do1 c= dom E by then o1+k in dom D by AFINSQ_1
            thenei  b1+  A59,
            then
A138       . = NAT_113;
            do1.i = E.i by A135,FUNCT_1:47
              .= (e.i)*(b|^i) by A61,A135,A137;
            hence thesis by A136,A138,XREAL_1:64 hence b|o1 divides d91.  NAT_D:def 3;
          end;
          Sum g1 = Partial_Sums((b:b^o1   d91 by Th2;
            =(b1)(#)(GeoSeq)).k1 SERIES_19
            .= (b-1)*(Partial_Sums(b GeoSeq).ok1) by SEQ_1:9
            .= (b-1)*((1 - (b to_power (ok1+1)))/(1-b)) by 
            .= -((1-b)*((1 - (b A229:Sumdiv (b|^o =  byNAT_D27;
            .= -(1 - (b |^ o1)) by A130,XCMPLX_1:87
            .= b|^o1-1;
          then Sum do1 < b|^o1 -1 + 1 by A132,A134,AFINSQ_2:57,XREAL_1:145;
          then
A139:     Sum do1 div (b|^o1) = 0 by NAT_D:27;
          ( for x being Nat st x in dom do1 holds E.x=do1.x)&
for x being Nat st x in dom d91 holds E.(len do1+x)=d91.x by A121,A123,
FUNCT_1:47;
          then E=do1^d91 by A127,AFINSQ_1:def 3;
          then
A140:     n = Sum do1 + Sum d91 by A62,AFINSQ_2:55;
          bo1 <> 0 by A1,PREPOWER:5;
          then Sum d91 mod (b|^o1) = 0 by A129,PEPIN:6;
          then n div (b|^o1) = (Sum d91 div (b|^o1)) + (Sum do1 div (b|^o1))
          by A140,NAT_D:19;
          
A141:     (n div (b|^o1)) * b|^o1 = Sum d91 by A139,A129,NAT_D          Sum  =Partial_Sums(b1()bGeoSeq).ok1by java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 70
           d91by A60A76,A82Ajava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
            =len %.o>+len by AFINSQ_134java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
          then d9<Eo>d91 ,A124def ;
          then . (1 -( ^o1)by java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 51
          then E.o = (n div (b| then do1< b|o1 - +  ,A193AFINSQ_257,XREAL_1:;
,A141,AFINSQ_2:53;
          then e.o*b|^o = (n div (b|^o)) * b|^o     Sum   b^o1 = 0 2;
A60,A61,A76,A77;
       thene.b|o = (ndiv b|)  ^o -(n (|o1)  b|o|
          1 )47;
          then e.o*b|^o = b|^o*((n div (          then D=do1^d91 by A226,AFINSQ_1
          then (b|^o*e.o)/b|^o = (b|:     n  Sumdo1    A:;
          bo1 >0by ,PREPOWER:;
          hence d.a=e.a by A115,A104,XCMPLX_1:89;
        end;
        suppose
   then n div b^)=( d91div b^1)  Sumdiv|
          set d9=<%D.o%>;
          reconsider co=D|o as XFinSequence of NAT;
A143:     len d = len D by A41;

A144:     len co=o by A79,AFINSQ_1:11;
A145:     len d9=oo by )=  6;
          then
     domD= len co   d9 byA41,A144
A147:     for x being Nat st x,AT_D:;
          proof
            let  beNat;
            assume x in dom d9;
            then x < 1 by A142,A145,AFINSQ_1:86;
            x=0 by14
            hence java.lang.StringIndexOutOfBoundsException: Range [34, 21) out of bounds for length 73
          end;
          now
            let k be Nat;
            java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 64
            assume
A148:       k in dom           reconsider o1=o+1 as Element of NAT;
            then k < len d9A236:     o1=kby NAT_1:13;
          
            then o+k in dom D by AFINSQ_1:86;
            then D.(o+k) = d.(o+k)*b|^(o+k) by A42;
            then d9.K = d.(o+k)*b|^(o+k) by A144,A147,A148
              .= d.(o+k)*(b|^o*b|^k) by NEWTON:8
              .= (d.(o+k)*(b|^k))*(b|^o);
            hence b|^o divides d9.k by NAT_D:def 3;
          end;
          then
A149:     b|^o divides Sum d9 by Th2;
          reconsider bo=b|^o as Element of NAT by ORDINAL1:def 12;
A150:     1-b <> 0 by A1;
          consider ok being Nat such that
A151:     ok+1=o by A142,NAT_1A:     1-<>0 by ;
          java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 61
           (()#( java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 79
;
        java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 68
            .= ((b-1)(#)Partial_Sums(bconsiderok1beingNat suchthat
            =bySEQ_1:9
            .= (b-1)*((1 - (b to_power (ok+1)))/(1-b)) by A1,SERIES_1:22
            .= -((1-b)*((1 - (b |^ o))/(1-b))) by A151
            .= -(1 - (b |^ o)) by A150,XCMPLX_1:87
            .= b|^o-1;
          consider ok being Nat such that
A153:     ok+1=o by A142,NAT_1:6;
          dom ((b-1)(#)(b GeoSeq)) = NAT by FUNCT_2:def 1;
          then
A154:     o c= dom ((b-1)(#)(java.lang.StringIndexOutOfBoundsException: Range [10, 1) out of bounds for length 14
          then
A155:     dom(b1()(b GeoSeq)  NAT by FUNCT_2: 1java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
A156:     forthen
          proof
            let i be Nat;
A244       o1 ,,RELAT_162;
            assume
A157:       i in dom co;
            then i in o by A79,A143,AFINSQ_1:11;
            then
A158:       g.I = ((b-1)(#)( proof
              . ()(b )I)  SEQ_19
              .= b1*(b|^I) by PREPOWER
A159:       dom co c= dom D by RELAT_1:60;
            then d.i < b1+1 by            k Segm 1 by AFINSQ_1:33java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44

A160:       d.i <= b1 by NAT_1:13;
            co.i = D.i by A157,FUNCT_1:47
              .= (d.i)*(b|^i) by A42,A157,A159;
            hence thesis by A158,A160,XREAL_1:64;
          end;
          len co = len g by A144,A151,A154,A255:     for u being Nat st u in Segm oo1 ex x be[,]
          considerd91  XFinSequenceof NAT such that
          then
A161:     codiv (bjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
          for x being Nat stthen 91. = e(o1k*|(o1+k by A256,258
then=d9 A,java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 51
          then
FUNCT_1:47
A163:     bo <> 0 by A1,          then E=do1^d91 by =d91by ,def 
          then Sum d9 mod           then
          then n div (b Sum  byA62,AFINSQ_2:55;
,NAT_D:19;
          (ndiv (^)  |^o   d9by A149,3java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
          thentndiv b^o1  (d91  b^1) +(um  (^))
          then d.o*b|^o/b|^o = (n div (b|^o)) * b|^o/b|^o by A41,A42,A77;
          then
A164:     d.o = (n div (b|^o)) * b|^          by ,NAT_D:java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
          =<Eo
          reconsider co=           =| XFinSequenceof AT
A165:     len A262:     len e = len E by A60;
          then
A166:     len co=o by A76,A79,AFINSQ_1:11;
A167:     len d9=A263 lenco by A76,,AFINSQ_111;
          then
A168:     dom E = len co + len d9 by A60,A76,A166;
A169:     for x being Nat st x in dom d9 holds E.(len co+x)= d9 .letkbe Natjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
          proof
            let x be Nat;
            assume x in dom d9;
                 A167,86java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
            then x = 0 by           then
            hence thesis by A166;
          end;
          now
  let  Nat;
            reconsider K=k as Element of NAT by ORDINAL1:def 12;
            assume
A170:k indomd9;
            then k < len d9 by AFINSQ_1:86;
            then o+k < len E by A166,A168,XREAL_1:8;
             o   Ebyjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
            then E.(o+k) = e.(o+k)*b|^(o+k) by :g= (-()b ). byA26947
            then d9.K. b(( GeoSeq.)  java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
              .= e.(o+k)*(b|^o*b|^k) by NEWTON:8
              .= (e.(o+k)*(b|^k))*(b|^o);
            hence b|^o divides d9.k by NAT_D:def 3;
          end;
          then
     ^ divides    java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
            =(b1*b)ok  :java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
          =(1)()( )(ok1  of 
;
          reconsider bo=b|^o as Element of :7
A172.= 
          dom ((b-1)           b^ 1+1 by,java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 73
          
A173:     o c= dom ((b-1)(#     now
          then
A174:     len co = assume
A175:     dom g d91java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
A176:     for i being Nat st i in dom co holds co.i <= g.i
          proof
            let i be Nat;
            reconsider I=i as Element of NAT by ORDINAL1:def 12;
            assume
A177:       i in dom co;
            then i in o by .ob|o=( div b^) * b|^  n div b^1) o*|java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
            then
A178:       g.I = ((b-1)(#)(b GeoSeq)).I by A175,FUNCT_1:47
              .= (b-1)*((b GeoSeq).I) by SEQ_1:9
              .= b1*(b|^I) by PREPOWER:def 1;
A179:       java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 12
             .  + A59,A60A177;
            then
A180:       e.i <= b1 by NAT_1:13;
            co.i = E.i by A177,FUNCT_1:47
              .= (e.i)*(b|^i) by A61,A177,A179;
            hence thesis by A178,A180,XREAL_1:64;
          end;
          Sum g = Partial_Sums((b-1)(#)(b     java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 24
            .= ((b-1)(#)Partial_Sums(b GeoSeq)).ok by SERIES_1:9
            =(-)*java.lang.StringIndexOutOfBoundsException: Range [57, 34) out of bounds for length 59
            .= (b-1)*((1 - (b to_powerforn,being Natst b >1 holdslen digits
            .= -((1-b)*((1 - (b |^ o))/(1-b))) by A153
            .= -(1 -  assume
            .= b|^o-1A1  1java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
           Sumco < |o-    ,5,:;
          then
A181:     Sum co div (b|^o) = 0 by NAT_D:27;
          for x being Nat st x in dom co holds E.x=co.x by FUNCT_1:47;
          then E=co^d9 by A168,A169,AFINSQ_1:def 3 java.lang.StringIndexOutOfBoundsException: Range [19, 16) out of bounds for length 32
          then
A182:     n =  suppose
A183:     bo <> 0 by A1,java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 9
           d9 mod b^)  0 A171,EPIN:;
          then n div (b|^o) = (Sum d9 div (b|^o)) + (Sum co div (b|^o)) by A182
,NAT_D:19;
         then( div (^o) * |o =Sum d9 by A181,A171,NAT_D:;
          then E.o = (n div (b|^o)) * b|^o hthesis by NAT_114java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
          then e.o*java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 4
          hence d.a=e.a by A164,A183,java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 0
        end;
        suppose
A184:     o>0 & o < k;
          reconsider o1=o+1 as Element of NAT;
A185:     o1 <= k by A184,NAT_1:13;
          then
A186:     o1 < len d by XREAL_1:147;
          reconsider bo1=b|^o1 as Element of NAT by java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 17
          reconsider do1=D|: >1;
          reconsider bo=b|^o as Element of NAT by ORDINAL1:def 12;
          defpred P[Nat,set] means $2=D.($1+o)  
          consider ok1 being Nat such that
A187:     ok1+1=o1;
          reconsider ok1 as Element of NAT by ORDINAL1:def 12;
          reconsider g1=((b1)(#)(b GeoSeq))|(e;
Th1;
A188:     len d = len D by A41;
          then
A189:     len do1=o1 by A186,AFINSQ_1:11;
          dom ((b-1)(#)(b GeoSeq)) = NAT by FUNCT_2:def 1;
          thennow
A190:     o1 c= dom ((b-1)(#)(b GeoSeq)) by ORDINAL1:def 2;
   ;
A191:     len do1 = len g1 by A189,A187,RELAT_1:62;
A192:     dom g1  then i in {0 by AFINSQ_1:def 4CARD_149;
A193:     for i being Nat st i
          proofi= by TARSKI:1;
            let i be Nat;
            reconsider I= as Element  NAT byORDINAL1:12
             . d))b^)java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 40
       iindom do1;
            then i in by A186A188,java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 50
            then
A195:       g1.I = ((b-1)(#)(b GeoSeq)).I by A192,FUNCT_1:begin :: Selected divisibility criteria
              .= (b-1)*((b GeoSeq).I) by SEQ_1:9
              .= b1*(b|^I) by PREPOWER:def    k stk10^   9divides java.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
A196       Dby RELAT_160
            A1 
            then
A197:    assume P[k]java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
            do1.i = D.i by A194,FUNCT_1:47
              .= (d.i)*(b|^i) by A42,A194,A196;
            hence thesisconsider  java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 34
          end;
          k < len d by XREAL_1:147;
           reconsider oo1len d   asElement NAT by NAT_1:1
,      . *m*10+1)
A198:     for u be Nat st u in Segm oo ex x be Element of NAT st P[u,x];
          consider d9 being XFinSequence of NAT such that
A199:     dom d9=Segm oo & for x being Nat st x in Segm oo holds P[
          x,d9.x] from STIRL2_1:sch 5(A198);
A200:     now
            let k be Nat;
            assume k in dom <%D.o%>;
            then k in Segm 1 by AFINSQ_1:33;
            then k < 1 by NAT_1:44;
            then
A201:       k=0 by NAT_1:14;
            then len d9 > k by A79,XREAL_1:50,A199;
            then k in dom d9 by A199,NAT_1:44;
            hence d9.k=D.(k+o) by A199
              .= <%D.o%>.k by A201;
          end;
          defpred P[Nat,set] means $2=D.($1+o1);
A202:     for u being Nat st u in Segm oo1 ex x be Element of NAT st P[u,x];
          consider d91 being XFinSequence of NAT such that
A203:     java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 30
          P[d.] fromSTIRL2_1:sch5A202;
          reconsider co=D|o as XFinSequence:P[0  NAT_D6;
A204:     for being holds [k] fromNAT_1:ch2A6);
          then
A205:     len co=o by A79,AFINSQ_1:11;
then A206:     java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 6
          now
            k be Nat;
            reconsider K=k as Element of NAT by ORDINAL1e;
            
A207:       k in theorem
            then   for bbeing Nat  b1holds  divides n iffdigits(,.  java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
            then o+k < len D by A205,A206,XREAL_1:8;
            then o+k in dom D by AFINSQ_1:86;
            then D.(o+k) = d.(o+k)*b|^(o+k) by A42;
            then d9.K = d.(o+k)*A1: for  being  iindom d holds .i  digits(,b.)(|) 
              .= d.(o+k)*(b|^o*b|^k) by NEWTON:8
              =((+)(|k)*(b|o;
             bdivides  implies(n,)0  
          end;
          then
A208:     b|A4 n>1by A3,h4
          ( for x being Nat st
for x being Nat st x in dom d9 holds D.(len co+x)=d9 .x by A199,A205,FUNCT_1:47
;
          then D=co^d9 by A206,AFINSQ_1:def 3;
          then
A209:     n = Sum co + Sum d9 by A43,AFINSQ_2:55;
          consider ok being Nat such that
A210:     ok+1=o by A184,NAT_1:6;
          reconsider ok as Element of NAT by ORDINAL1:def 12;
          reconsider g=((b1)(#)(b GeoSeq))|(ok+1) as XFinSequence of NAT by Th1
;
A211:     1-b <> 0 by A1;
A212:     Sum g = Partial_Sums((b-1)(#)(b GeoSeq)).ok by AFINSQ_2:56
            .= ((b-1)(#)Partial_Sums(b GeoSeq)).ok by SERIES_1:9
            .= (b-1)*(Partial_Sums(b GeoSeq).ok) by SEQ_1:9
            .= (b-1)*((1 - (b to_power (ok+1)))/(1-b)) by A1,SERIES_1:22
            .= -((1-b)*((1 - (b |^ o))/(1-b))) by A210
            .= -(1 - (b |^ o)) by A211,XCMPLX_1:87
            .= b|^o-1;
          dom ((b-1)(#)(b GeoSeq)) = NAT by FUNCT_2:def 1;
          then
A213:     o c= dom ((b-1)(#)(b GeoSeq)) by ORDINAL1:def 2;
          then
A214:     dom g = o by A210,RELAT_1:62;
A215:     for i being Nat st i in dom co holds co.i <= g.i
          proof
            let i be Nat;
            reconsider I=i as Element of NAT by ORDINAL1:def 12;
            assume
A216:       i in dom co;
            then i in o by A79,A204,AFINSQ_1:11;
            then
A217:       g.I = ((b-1)(#)(b GeoSeq)).I by A214,FUNCT_1:47
              .= (b-1)*((b GeoSeq).I) by SEQ_1:9
              .= b1*(b|^I) by PREPOWER:def 1;
A218:       dom co c= dom D by RELAT_1:60;
            then d.i < b1+1 by A40,A41,A216;
            then
A219:       d.i <= b1 by NAT_1:13;
            co.i = D.i by A216,FUNCT_1:47
              .= (d.i)*(b|^i) by A42,A216,A218;
            hence thesis by A217,A219,XREAL_1:64;
          end;
A220:     now
            let k be Nat;
            assume
A221:       k in dom d91;
            then k < len d91 by A203,NAT_1:44;
            then k+1 < oo1+1 by XREAL_1:8,A203;
            then k+1 < len d9 by A199;
            then
A222:       k+1 in dom d9 by A199,NAT_1:44;
            thus d9.(len <%D.o%> + k) = d9.(1 + k) by AFINSQ_1:33
              .= D.(len co+(k+1)) by A199,A205,A222
              .= D.(len do1 + k) by A205,A189
              .= d91.k by A203,A189,A221;
          end;
          dom d9 = 1 + dom d91 by A199,A203
            .= len <%D.o%> + len d91 by AFINSQ_1:34;
          then d9=<%D.o%>^d91 by A200,A220,AFINSQ_1:def 3;
          then
A223:     Sum d9 = Sum <%D.o%> + Sum d91 by AFINSQ_2:55;
          defpred P[Nat,set] means $2=E.($1+o);
A224:     1-b <> 0 by A1;
          consider ok being Nat such that
A225:     ok+1=o by A184,NAT_1:6;
A226:     dom D = len do1 + len d91 by A41,A203,A189;
          now
            let k be Nat;
            reconsider K=k as Element of NAT by ORDINAL1:def 12;
            assume
A227:       k in dom d91;
            java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 44
            then o1suppose
  java.lang.StringIndexOutOfBoundsException: Range [45, 42) out of bounds for length 46
            :0in  digits,)by,8;
.o1k*^(o1+ byA227
              .= d.(o1+k)*(b|^o1*b|^k) byjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
              .= (d.(o1+k)*(b|^k))*(b|^o1);
            hence b|^o1 divides d91.k by java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 13
          end;
          then
A228:     b|^o1 divides Sum d91 by Th2;
          len co = len g by A205,A210,A213,RELAT_1:62;
          then Sum co < b|^o -1 + 1 by A212,A215,AFINSQ_2:57,XREAL_1:145;
          then
A229:     Sum cosuppose
230:1b >0by;
          Sum g1 = Partial_Sums((b-1)(#)(b GeoSeq)).ok1 by AFINSQ_2:56
            .= ((b-1)(#)Partial_Sums(b GeoSeq)).ok1 by SERIES_1:9
            .= (b-1)*(Partial_Sums(b GeoSeq).ok1) by SEQ_1:9
hence  A12NAT_D7;
            .= -((1-b)*((1 - (b |^ o1))/(1-b)))    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
            =-1- ( ^ o1) byA230,:
            .= b|^o1-1;
          then Sum do1 < b|^o1 -1 + 1 by A191,A193,AFINSQ_2:  
          then
A231:     Sum do1 div (bassume  %.%;
          ( for x being Nat st x injava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
forx being Nat st  indom   . x=91A203,A189,
FUNCT_1:47;
          then D=do1^d91 by A226,AFINSQ_1:def 3;
          then
        + d91 by ,:55java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
          bo1 <> 0 by A1,PREPOWER:5;
          then Sum d91 mod (b|^o1) = 0 by A228,PEPIN:6;
          then n div (b|^o1) = (Sum d91 div (b|^o1)) + (Sum do1 div (b|^o1))
          by A232,java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 14
          then
A233:     (n div (b|^o1)) * b|^o1 = Sum d91
A234:     bo <> 0 by A1,PREPOWER:5;
          then Sum d9. digitsnb).(+)b^1 by A7,18
          then n div (b|^o) = (Sum d9 div (          =digits(b).i)(^b NEWTON6
NAT_D19;
          then (n div  b
           by A229,A208,AFINSQ_2:53,NAT_D:3;
          thenthen
A41,A42,A77A19:Sumd9B 0  ,PEPIN6
          then d.o*b|^o = (n div (b|^oA20:  now
          1 ) by NEWTON:8;
          then d.o*b|^o = b|^o*((n div (b|^o)) - (n div (b|^o1)) * b|^1);
          then (b|^o*d.o)/b|^o = (b|^o*((n div (b|^o)) - (n div (b|^o1)) * b)
          ) /b|^o;
          then
A235:     d.o = (b|^o*((n div (b|^o)) - (n div (b|^o1)) * b))/b |^o by A234,
XCMPLX_1:89;
          reconsider o1=o+1 as Element of NAT;
A236:     o1 <= k by A184,NAT_1:13;
          then
A237:     o1 < len d by XREAL_1:147;
reconsiderok ofNATORDINAL1:def12
          reconsider

A238:     1-b%d.%^9 byA14A20AFINSQ_1:ef 3java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
           then  .  d9 byAFINSQ_2:
          thend   )   by ,PEPIN;
reconsiderboasNAT ORDINAL1d 12;
          consider ok1 being Nat such that
A239:     ok1+1=o1;
          reconsider ok1 as Element of NAT by ORDINAL1:def 12;
          reconsider g1=((b1)(#)(b GeoSeq))|(ok1+1) as XFinSequence of NAT by
Th1;
A240:     len e = len E by A60;
          then
A241:     len do1=o1 by A76,A237,AFINSQ_1:11;
          dom ((b-1)(#)(b GeoSeq)) = NAT by FUNCT_2:def 1;
          then
A242:     o1 c= dom ((b-1)(#)(b GeoSeq)) by ORDINAL1:def 2;
          then
A243:     len do1 = len g1 by A241,A239,RELAT_1:62;
A244:     dom g1 = o1 by A239,A242,RELAT_1:62;
A245:     for i being Nat st i in dom do1 holds do1.i <= g1.i
          proof
            let i be Nat;
            reconsider I=i as Element of NAT by ORDINAL1:def 12;
            assume
A246:       i in dom do1;
            then isjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
            then
A247:       g1.I = ((b-1endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
                      n<0java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
 byPREPOWERdef java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
A248:       dom do1 c= dom         hencethesis by NAT_D:;
            then e.i < b1+1 by A59,A60,A246;
            then
A249:       e.i <= b1 by NAT_1:13;
            do1.i = E.i by A246,FUNCT_1:47
              .= (e.i)*(b|java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 10
            hence thesis by A247,A249,XREAL_1:64;
          end;
Sum (b1()b)o  java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 70
            .= ((b-1)(#)Partial_Sums(b GeoSeq)).ok1 by SERIES_1:9
            .= (b-1)*(Partial_Sums(b GeoSeq).ok1) java.lang.StringIndexOutOfBoundsException: Range [0, 52) out of bounds for length 8
             >;
            .= -((1-b)*((1 - (b |^ o1))/(1-b))) by A239
            .= -(1 - (b |^ o1)then  being that
=b|o-;
          then Sum do1 < b|^o1 -1 + 1 by A243,A245,AFINSQ_2:57,XREAL_1:145;
          then
A250:     b|o1)=0by NAT_D27java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
          k < len d by XREAL_1:147;
          then reconsider oo1=len      hence  d by :ef3;
,XXREAL_0:2;
A251:     for u being Nat st java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 6
          consider d9 being java.lang.StringIndexOutOfBoundsException: Range [28, 40) out of bounds for length 25
A252:     dom d9=Segm oo & for x being Nat st x in Segm oo holds P[
          java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A253:     now
            let k be Nat;
            assume k in dom <%E.o%>;
            then k in Segm 1 by AFINSQ_1:33;
            then k < 1 by java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 48
            then
_1:14;
            oo > 0 by A79,XREAL_1:50;
            then k < len d9 by A252,A254;
            then k in dom d9 by A252,NAT_1:44;
            henced9.=E(ko)by
              .= <%E.o%>.k by A254;
          end;
          defpred P[Nat,set] means $2=E.($1+o1);
 Nat uinSegm oo1   ElementofNAT  [ux];
          consider d91 being XFinSequence of NAT such that
     dom java.lang.StringIndexOutOfBoundsException: Range [26, 22) out of bounds for length 67
          P[x,d91.x] frompercases A3,java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 31
A257:     dom A8:   len digit)1;
          now
            let k be Nat;
            reconsider K=k as Element of NAT by ORDINAL1:def 12;
            java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
A258:       k in dom d91;
            then k < len d91 by AFINSQ_1:86;
            then o1+k < len E by A241,A257,XREAL_1:8;
            then o1+k in dom E by AFINSQ_1:86;
            then E.(o1+k) = e.(o1+k)*b|^(o1+k) by A61;
            then d91.A11:   len n,10>;
              .= e.(o1+k)*(b|^o1*b|^k) by NEWTON:8
              .= (e.(o1+k)*(b|^k))*(b|^o1);
91kbyd 3java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
          end;
          then
A259:     b|^o1 divides Sum d91 by Th2l    java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 43
          ( for x being Nat st x in dom do1 holds        then =0  NAT_114
for x being Nat st x in      end;
FUNCT_1:47;
          then E=do1^d91 by A257,AFINSQ_1:def 3;
          then
A260:     n A14: dom =egm   for x being  xinSegm kholds xd9.x
          bo1 <>from STIRL2_1:sch 5A13;
          then Sum d91 mod (b|^njava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
          then n div (b|^o1) = (Sum d91 div (b|^o1)) + (Sum do1 div (b|^o1))
          by A260,NAT_D:19;
          
A261:     (n div (b|^o1))         then
                   reconsider =Eoasof NAT
A262:     len e        d9=.(i+)by ,java.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
          then
A263:     len co=o by A76,A79,AFINSQ_1:11;
then A264:domE=lenco +len d9 by A60,A76,;
          now
            let k be Nat;
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 64
            assume
     in d9;
            then k < len d9 by AFINSQ_1:86;
            beNat;
            then o+k in dom E by AFINSQ_1:86;
            then E.(o+k) = e.(o+k)*b|^(o+k) by A61;
            then d9.K = e.(o+k)*b|^(o+k) by        hence .len <d%  l = .l A14,A19;
              .= e.(o+k)*(b|^o*b|^k) by NEWTON:8
              . e(k*b^)*b|o;
            hence b|^o divides d9.k by NAT_D:def 3;
          end;
          then
A266:     b|^o divides Sum d9 by Th2;
          dom(b1(#)b )=NATby FUNCT_2: 1java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
          then
A267:     o c= dom ((b-1)(#)(b GeoSeq)) by ORDINAL1:def 2;
          then
A268:     len co = len g by A263,A225,thend     17;
A269:     dom g = o by A225,A267,RELAT_1:62;
A270:     for i being        in dom digits(,)by A11,FINSQ_1:;
          proof
             be at
            reconsider I=i as Element hence thesis
            assume
A271:       i in dom co;
            then i in o by A76,A79,A262,AFINSQ_1:11A21  dividesdigits(n,10).0;
            then
A272:       g.I = ((b-1)(#)(java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
              .= (java.lang.StringIndexOutOfBoundsException: Range [10, 19) out of bounds for length 10
              .= b1*(b|^I) by PREPOWER:def 1;
A273:       dom co c= dom E by RELAT_1:60;
            then e.i < b1+1 byi0
            then
A274:       e.i <= b1 by NAT_1:13;
            co.  .  A271FUNCT_1:java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
              .= (e.i)*(b|^i) by A61,A271,A273;
            hence thesis by A272,A274,XREAL_1:64;
          endjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
          Sum g = Partial_Sums((b-1)(#)(b GeoSeq)).ok by AFINSQ_2:56
            .= ((b-1)(#)Partial_Sums(b GeoSeq)).ok by SERIES_1:9
            .= (b-1)*(Partial_Sumsthen  dividesvalue(digits(,)10 A2,;
            .= (b-1)*((1 - (b to_power (ok+1)))/(1-b)) by A1,SERIES_1:22
            .= -((1-b)*((1 - (b |^ o))/(1-b))) by A225
            .= -(1 - (b |^ o)) by A224,XCMPLX_1:87
            .= b|^o-1;
          then Sum co < b|^o -1 + 1 by A268,A270,AFINSQ_2:57,XREAL_1:145;
          then
A275:     Sum co div (b|^o) = 0   for n being Nat holds 3 divides  3 divides Sum digitsn10java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
A276:      java.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
letbe ;
            
A277:       k in dom d91;
            then k < len d91 by A256,NAT_1:44;
            then k+1 < oo1+1 by XREAL_1:8,A256;
            then
A278:       k:    k Segm xbeingofNAT  Q
thusd9.len <Eo>+k) = .(+ k) by :
nco+k1)) by A252A,
  ]fromSTIRL2_1sch 5A);
              .= d91.k by A256,A241,A277;
          end;
d9    d91  A252,A256
            .= len <%E.o%> + len d91 by AFINSQ_1:34;
          then d9=<%E.o%>^d91 by     reconsider dz as Element of NAT bORDINAL1 12
          then
A279:     Sum d9 = Sum <%E.o%> + java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 33
          ( for x being Nat st x in dom co holds E.x=co.x)&
x Nat  indom  holds E.lenco+)d9.  A263,47
;
          then E=co^d9 by A264hence p9i= pimod 3 by A5
          then
A280:     n = Sum co + Sum d9 by A62,AFINSQ_2:55;
A281:     bo <> 0 by A1,PREPOWER:5;
          then
          then n div (b|^o) = (Sum d9 div (b|^o)) end
,NAT_D:19;
          then (n div (b|^o)) * b|^o = java.lang.StringIndexOutOfBoundsException: Range [0, 42) out of bounds for length 23
          . = ndiv o))*b^ -(ndiv (|)* b^  
9:53;
          then e.o*b|^o = (n div (b|^o)) * b|^o     n)mod3   A1,A5,Th3
A60,A61,A76,A77;
          then e.o*b|^o = (n div (b|^o)) * b|^o - (n div (b|^o1)) * (b|^o*b  end;
          1) by NEWTON:java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
          then e.o*b|^o = b|^o*((n div (b|^o)) - (n div (b|^o1)) * b|^1);
          then (b|^o*e.o)/b|^o = (b   Sum  3=  ,Th3
          /|
          hence d.a=ehence thesis y A3Th5;
        end;
      end;
      hence thesis by A76,FUNCT_1:2;
    end;
    assume that
    n=0 and
A282: d=<%0%> & e=<%0%>;
    thus thesis by A282;
  ;
end;

theorem Th4:
  for n,b being Nat st b > 1 holds len digits(n,b) >= 1  thus 5divides  5 divides digits(,)0
proof
   n, Nat;
  assume
b > 1;
  per cases;
  suppose
    n=0;
    then digits(n,b)=<%0%> by A1,Def2;
    hence thesis by AFINSQ_1:33;
  end;
  suppose
    n<>0;
    then digits(n,b).(len digitsA8:  len digits(,0)=;
 digitsn,b) 1indomdigitsnbbydef ;
    hence thesis by NAT_1:14;
  end;
end;

  len d
ds digitsb=
proof
  let n,b be Nat;
  assume
A1: b>1;
  per cases;
  suppose
    n<>0;
    hence thesis by A1,Def2;
  ;
  suppose
A2: n=0;
    then
:digits(n0% by A1,Def2;
    now
      let i be Nat;
      assume iin dom<%%;
      then i in {0} by AFINSQ_1:def 4,CARD_1:49;
      then
A4:   i=0 by TARSKI: then 0by NAT_114;
      thus dl<%d.%.;
        .= (digits(n,java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 10
    end;
    then
 value(digits(n,b),b)=Sum <%0%> by A3,Def1;
    hence thesis by A2,AFINSQ_2:53;
  end;
end;

java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 14

:
  for n,k being Nat st k=10|^n -         then +1<k+ XREAL_18A14
proof
  defpred P[A16    i+   d by A5AFINSQ_186java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
  let n,k be Nat;
A1: now
      beNat;
    assume P[k];
    then consider l being Nat such that
A2 l=(10^k)1and
A3: 9 divides l;
    consider m being Nat such that
A4: l = 9 * m by A3,NAT_D:def 3;
A5: 9 divides 9*(m*10+1) by NAT_D:def 3;
    10|^(k+1)-1 = (9*m+1)*10 -1 by A2,A4,NEWTON:6
      .= 9*(m*10+1);
    hence P[+1] byA5
  end;
  (10      then
    .= 0;
  then
A6: P[0] by NAT_D:6;
  for k being Nat holds P[k] from NAT_1:sch 2(A6,A1);
  then
:ex  being  st l=10|^n -1   java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 47
  assume k=10|^n - 1;
  hence thesis by A7;
end;

theorem
  for n,b being Nat st b>1 holds b      end;
proof
  let n,b be Nat;
  reconsider B=b as Element of NAT by ORDINAL1:def 12;
  consider d XFinSequence f NAT suchthat
  dom d = dom digits(n,b) and
holds di= java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 73
A2: value      thenSum  = Sum %.0% +d955;
  assume
A3: >;
  thus b divides n implies digits(n,b).0 = 0
  proof
:(,)= java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    assume
A5: b divides n;
    consider d being XFinSequence of NAT such that
A6: dom d = dom digits(n,b) A11java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 47
A7  n)0(|0)byA5A20
A8: value(digits(n,b),b) = Sumthen divides digits(10.*11by4
    per cases by A4,XXREAL_0:1;
    suppose
A9:   endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
A10:  b divides Sum d by A3,A5,A8,Th5
A11:  0 in A21 5  java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 30
      len d = 1 by A6,A9;
      then d=<%d.0%> by AFINSQ_1:34;
      then Sum d = d.0 by AFINSQ_2:53
        .= digits(n,b).0*(b|^0) by A6,A7,A11;
      then
A12:    suppose
      per cases;
      suppose
        n=0;
        then digits(n,b) = <%0%> by A3,Def2;
        hence thesis;
      end;
      suppose
        n<>0;
        then digits(n,b).0 < b by A3,A11,Def2;
        hence thesis by A12,NAT_D:7;
      end;
    end;
    suppose
A13:  len digits(n,b)>1;
      then reconsider k=len digits(n,b)-1 as Element of NAT by NAT_1:21;
      defpred P[Nat,set] means $2=d.($1+1);
A14:  now
        let l be Nat;
        assume l in dom <%d.0%>;
        gm 1AFINSQ_1: java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
        end
        thenend;
        hence d.l=<%d.0%>.l;
java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 10
A15:  for u be Nat st u in Segm k ex x be Elementhence thesis byTh5
      java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 4
A16:  dom d9=Segm k & for x being Nat st x in Segm k holds P[x,d9.x]
      from STIRL2_1:sch 5(A15);
      now
        let i be Nat;
        assume
A17:    i in dom d9;
        then i < len d9 by A16,NAT_1:44;
        then i+1 < k+1 by XREAL_1:8,A16;
        then
A18:    i+1 in dom d by A6,AFINSQ_1:86;
        d9.i=d.(i+1) by A16,A17
          .= digits(n,b).(i+1)*b|^(i+1) by A7,A18
          .= digits(n,b).(i+1)*(b|^i*b) by NEWTON:6
          .= b*(digits(n,b).(i+1)*b|^i);
        hence b divides d9.i by NAT_D:def 3;
      end;
      then b divides Sum d9 by Th2;
      then
A19:  Sum d9 mod B = 0 by A3,PEPIN:6;
A20:  now
        let l be Nat;
A21:    len <%d.0%> + l = l+1 by AFINSQ_1:34;
        assume l in dom d9;
        hence d.(len <%d.0%> + l) = d9.l by A16,A21;
      end;
A22:  0 in dom digits(n,b) by A13,AFINSQ_1:86;
      dom d = k+1 by A6
        .= len <%d.0%> + len d9 by A16,AFINSQ_1:33;
      then d=<%d.0%>^d9 by A14,A20,AFINSQ_1:def 3;
      then Sum d = Sum <%d.0%> + Sum d9 by AFINSQ_2:55;
      then n = Sum <%d.0%> + Sum d9 by A3,A8,Th5;
      then n = d.0 + Sum d9 by AFINSQ_2:53;
      then (d.0 + Sum d9) mod B = 0 by A3,A5,PEPIN:6;
      then d.0 mod b = 0 by A19,NAT_D:17;
      then B divides d.0 by A3,PEPIN:6;
      then b divides digits(n,b).0*(b|^0) by A6,A7,A22;
      then
A23:  b divides digits(n,b).0*1 by NEWTON:4;
      per cases;
      suppose
        n=0;
        then digits(n,b) = <%0%> by A3,Def2;
        hence thesis;
      end;
      suppose
        n<>0;
        then digits(n,b).0 < b by A3,A22,Def2;
        hence thesis by A23,NAT_D:7;
      end;
    end;
  end;
  assume
A24: digits(n,b).0=0;
  now
    let i be Nat;
    assume
A25: i in dom d;
    per cases;
    suppose
      i=0;
      then d.i = (digits(n,b).0)*b|^0 by A1,A25
        .= digits(n,b).0*1 by NEWTON:4;
      hence b divides d.i by A24,NAT_D:6;
    end;
    suppose
      i>0;
      then consider j being Nat such that
A26:  j+1=i by NAT_1:6;
      d.i = digits(n,b).i*(b|^(j+1)) by A1,A25,A26
        .= digits(n,b).i*((b|^j)*b) by NEWTON:6
        .= b*(digits(n,b).i*(b|^j));
      hence b divides d.i by NAT_D:def 3;
    end;
  end;
  then b divides value(digits(n,b),b) by A2,Th2;
  hence thesis by A3,Th5;
end;

theorem
  for n being Nat holds 2 divides n iff 2 divides digits(n,10).0
proof
  let n be Nat;
  consider d being XFinSequence of NAT such that
  dom d = dom digits(n,10) and
A1: for i being Nat st i in dom d holds d.i = ( digits(n,10).i)*(10|^i) and
A2: value(digits(n,10),10) = Sum d by Def1;
  thus 2 divides n implies 2 divides digits(n,10).0
  proof
A3: len digits(n,10)>=1 by Th4;
    assume
A4: 2 divides n;
    consider d being XFinSequence of NAT such that
A5: dom d = dom digits(n,10) and
A6: for i being Nat st i in dom d holds d.i = ( digits(n,10).i)*(10|^i ) and
A7: value(digits(n,10),10) = Sum d by Def1;
    per cases by A3,XXREAL_0:1;
    suppose
A8:   len digits(n,10)=1;
      then
A9:   0 in dom digits(n,10) by AFINSQ_1:86;
A10:  2 divides Sum d by A4,A7,Th5;
      len d = 1 by A5,A8;
      then d=<%d.0%> by AFINSQ_1:34;
      then Sum d = d.0 by AFINSQ_2:53
        .= digits(n,10).0*(10|^0) by A5,A6,A9;
      then 2 divides digits(n,10).0*1 by A10,NEWTON:4;
      hence thesis;
    end;
    suppose
A11:  len digits(n,10)>1;
      then reconsider k=len digits(n,10)-1 as Element of NAT by NAT_1:21;
      defpred P[Nat,set] means $2=d.($1+1);
A12:  now
        let l be Nat;
        assume l in dom <%d.0%>;
        then l in Segm 1 by AFINSQ_1:def 4;
        then l < 1 by NAT_1:44;
        then l=0 by NAT_1:14;
        hence d.l=<%d.0%>.l;
      end;
A13:  for u being Nat st u in Segm k ex x be Element of NAT st P[u, x];
      consider d9 being XFinSequence of NAT such that
A14:  dom d9=Segm k & for x being Nat st x in Segm k holds P[x,d9.x]
      from STIRL2_1:sch 5(A13);
      now
        let i be Nat;
        assume
A15:    i in dom d9;
        then i < len d9 by A14,NAT_1:44;
        then i+1 < k+1 by XREAL_1:8,A14;
        then
A16:    i+1 in dom d by A5,AFINSQ_1:86;
        d9.i=d.(i+1) by A14,A15
          .= digits(n,10).(i+1)*10|^(i+1) by A6,A16
          .= digits(n,10).(i+1)*(10|^i*10) by NEWTON:6
          .= 2*(digits(n,10).(i+1)*10|^i*5);
        hence 2 divides d9.i by NAT_D:def 3;
      end;
      then 2 divides Sum d9 by Th2;
      then
A17:  Sum d9 mod 2 = 0 by PEPIN:6;
A18:  now
        let l be Nat;
A19:    len <%d.0%> + l = l+1 by AFINSQ_1:34;
        assume l in dom d9;
        hence d.(len <%d.0%> + l) = d9.l by A14,A19;
      end;
      dom d = k+1 by A5
        .= len <%d.0%> + len d9 by A14,AFINSQ_1:33;
      then d=<%d.0%>^d9 by A12,A18,AFINSQ_1:def 3;
      then Sum d = Sum <%d.0%> + Sum d9 by AFINSQ_2:55;
      then n = Sum <%d.0%> + Sum d9 by A7,Th5;
      then n = d.0 + Sum d9 by AFINSQ_2:53;
      then (d.0 + Sum d9) mod 2 = 0 by A4,PEPIN:6;
      then d.0 mod 2 = 0 by A17,NAT_D:17;
      then
A20:  2 divides d.0 by PEPIN:6;
      0 in dom digits(n,10) by A11,AFINSQ_1:86;
      then 2 divides digits(n,10).0*(10|^0) by A5,A6,A20;
      then 2 divides digits(n,10).0*1 by NEWTON:4;
      hence thesis;
    end;
  end;
  assume
A21: 2 divides digits(n,10).0;
  now
    let i be Nat;
    assume
A22: i in dom d;
    per cases;
    suppose
      i=0;
      then d.i = (digits(n,10).0)*10|^0 by A1,A22
        .= digits(n,10).0*1 by NEWTON:4;
      hence 2 divides d.i by A21;
    end;
    suppose
      i>0;
      then consider j being Nat such that
A23:  j+1=i by NAT_1:6;
      d.i = digits(n,10).i*(10|^(j+1)) by A1,A22,A23
        .= digits(n,10).i*((10|^j)*10) by NEWTON:6
        .= 2*(digits(n,10).i*(10|^j)*5);
      hence 2 divides d.i by NAT_D:def 3;
    end;
  end;
  then 2 divides value(digits(n,10),10) by A2,Th2;
  hence thesis by Th5;
end;

::$N Divisibility by 3 Rule
::$L https://en.wikipedia.org/wiki/Divisibility_rule Divisibility rules
theorem
  for n being Nat holds 3 divides n iff 3 divides Sum digits(n,10)
proof
  let n be Nat;
  consider p being XFinSequence of NAT such that
A1: dom p = dom digits(n,10) and
A2: for i being Nat st i in dom p holds p.i = ( digits(n,10).i)*(10|^i) and
A3: value(digits(n,10),10) = Sum p by Def1;
  reconsider dop=dom p as Element of NAT by ORDINAL1:def 12;
  defpred Q[set,set] means $2=p.$1 mod 3;
A4: for k being Nat st k in Segm dop ex x being Element of NAT st Q[k, x];
  consider p9 being XFinSequence of NAT such that
A5: dom p9 = Segm dop & for k being Nat st k in Segm dop holds Q[k,p9.k
  ] from STIRL2_1:sch 5(A4);
A6: now
    let i be Nat;
    reconsider dz=10|^i - 1 as Nat by NAT_1:20,NEWTON:83;
    reconsider dz as Element of NAT by ORDINAL1:def 12;
    3 divides 3*3 & 9 divides dz by Th6,NAT_D:def 3;
    then 3 divides dz by NAT_D:4;
    then 3 divides (digits(n,10).i)*dz by NAT_D:9;
    then
A7: (digits(n,10).i)*dz mod 3 = 0 by PEPIN:6;
    assume
A8: i in dom p;
    hence p9.i = p.i mod 3 by A5
      .= (digits(n,10).i)*(dz+1) mod 3 by A2,A8
      .= ((digits(n,10).i)*dz+ digits(n,10).i) mod 3
      .= (0 qua Nat+digits(n,10).i) mod 3 by A7,NAT_D:22
      .= digits(n,10).i mod 3;
  end;
  thus 3 divides n implies 3 divides Sum digits(n,10)
  proof
    assume 3 divides n;
    then 3 divides Sum p by A3,Th5;
    then Sum p mod 3 = 0 by PEPIN:6;
    then Sum p9 mod 3 = 0 by A5,Th3;
    then Sum digits(n,10) mod 3 = 0 by A1,A5,A6,Th3;
    hence thesis by PEPIN:6;
  end;
  assume 3 divides Sum digits(n,10);
  then Sum digits(n,10) mod 3 = 0 by PEPIN:6;
  then Sum p9 mod 3 = 0 by A1,A5,A6,Th3;
  then Sum p mod 3 = 0 by A5,Th3;
  then 3 divides Sum p by PEPIN:6;
  hence thesis by A3,Th5;
end;

theorem
  for n being Nat holds 5 divides n iff 5 divides digits(n,10).0
proof
  let n be Nat;
  consider d being XFinSequence of NAT such that
  dom d = dom digits(n,10) and
A1: for i being Nat st i in dom d holds d.i = ( digits(n,10).i)*(10|^i) and
A2: value(digits(n,10),10) = Sum d by Def1;
  thus 5 divides n implies 5 divides digits(n,10).0
  proof
A3: len digits(n,10)>=1 by Th4;
    assume
A4: 5 divides n;
    consider d being XFinSequence of NAT such that
A5: dom d = dom digits(n,10) and
A6: for i being Nat st i in dom d holds d.i = ( digits(n,10).i)*(10|^i ) and
A7: value(digits(n,10),10) = Sum d by Def1;
    per cases by A3,XXREAL_0:1;
    suppose
A8:   len digits(n,10)=1;
      then
A9:   0 in dom digits(n,10) by AFINSQ_1:86;
A10:  5 divides Sum d by A4,A7,Th5;
      len d = 1 by A5,A8;
      then d=<%d.0%> by AFINSQ_1:34;
      then Sum d = d.0 by AFINSQ_2:53
        .= digits(n,10).0*(10|^0) by A5,A6,A9;
      then 5 divides digits(n,10).0*1 by A10,NEWTON:4;
      hence thesis;
    end;
    suppose
A11:  len digits(n,10)>1;
      then reconsider k=len digits(n,10)-1 as Element of NAT by NAT_1:21;
      defpred P[Nat,set] means $2=d.($1+1);
A12:  now
        let l be Nat;
        assume l in dom <%d.0%>;
        then l in Segm 1 by AFINSQ_1:def 4;
        then l < 1 by NAT_1:44;
        then l=0 by NAT_1:14;
        hence d.l=<%d.0%>.l;
      end;
A13:  for u being Nat st u in Segm k ex x be Element of NAT st P[u, x];
      consider d9 being XFinSequence of NAT such that
A14:  dom d9=Segm k & for x being Nat st x in Segm k holds P[x,d9.x]
      from STIRL2_1:sch 5(A13);
      now
        let i be Nat;
        assume
A15:    i in dom d9;
        then i < len d9 by A14,NAT_1:44;
        then i+1 < k+1 by XREAL_1:8,A14;
        then
A16:    i+1 in dom d by A5,AFINSQ_1:86;
        d9.i=d.(i+1) by A14,A15
          .= digits(n,10).(i+1)*10|^(i+1) by A6,A16
          .= digits(n,10).(i+1)*(10|^i*10) by NEWTON:6
          .= 5*(digits(n,10).(i+1)*10|^i*2);
        hence 5 divides d9.i by NAT_D:def 3;
      end;
      then 5 divides Sum d9 by Th2;
      then
A17:  Sum d9 mod 5 = 0 by PEPIN:6;
A18:  now
        let l be Nat;
A19:    len <%d.0%> + l = l+1 by AFINSQ_1:34;
        assume l in dom d9;
        hence d.(len <%d.0%> + l) = d9.l by A14,A19;
      end;
      dom d = k+1 by A5
        .= len <%d.0%> + len d9 by A14,AFINSQ_1:33;
      then d=<%d.0%>^d9 by A12,A18,AFINSQ_1:def 3;
      then Sum d = Sum <%d.0%> + Sum d9 by AFINSQ_2:55;
      then n = Sum <%d.0%> + Sum d9 by A7,Th5;
      then n = d.0 + Sum d9 by AFINSQ_2:53;
      then (d.0 + Sum d9) mod 5 = 0 by A4,PEPIN:6;
      then d.0 mod 5 = 0 by A17,NAT_D:17;
      then
A20:  5 divides d.0 by PEPIN:6;
      0 in dom digits(n,10) by A11,AFINSQ_1:86;
      then 5 divides digits(n,10).0*(10|^0) by A5,A6,A20;
      then 5 divides digits(n,10).0*1 by NEWTON:4;
      hence thesis;
    end;
  end;
  assume
A21: 5 divides digits(n,10).0;
  now
    let i be Nat;
    assume
A22: i in dom d;
    per cases;
    suppose
      i=0;
      then d.i = (digits(n,10).0)*10|^0 by A1,A22
        .= digits(n,10).0*1 by NEWTON:4;
      hence 5 divides d.i by A21;
    end;
    suppose
      i>0;
      then consider j being Nat such that
A23:  j+1=i by NAT_1:6;
      d.i = digits(n,10).i*(10|^(j+1)) by A1,A22,A23
        .= digits(n,10).i*((10|^j)*10) by NEWTON:6
        .= 5*(digits(n,10).i*(10|^j)*2);
      hence 5 divides d.i by NAT_D:def 3;
    end;
  end;
  then 5 divides value(digits(n,10),10) by A2,Th2;
  hence thesis by Th5;
end;

Messung
CHZG
8010010093

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.70Angebot  (Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-11-24) ¤

*Eine klare Vorstellung vom Zielzustand







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,139
#Domains=864,114