f03powersum.php

30/-45 {object:Fract: num -> -2, den -> 3} -2/3
30/45 + 3/36 {object:Fract: num -> 3, den -> 4} 3/4
4/15 * 70 {object:Fract: num -> 56, den -> 3} 56/3
x**0, 1..0 = 0
x**0, 1..1 = 1
x**0, 1..2 = 2
x**0, 1..3 = 3
x**0, 1..4 = 4
x**0, 1..5 = 5
x**0, 1..6 = 6
x**0, 1..7 = 7
dbQ: powersum t 1, s 1/2, c [-1 => 1, 0 => 1/2]
dbQ: powersum a[1] [2 => 1/2, 1 => 1/2]
x**1, 1..0 = 0
x**1, 1..1 = 1
x**1, 1..2 = 3
x**1, 1..3 = 6
x**1, 1..4 = 10
x**1, 1..5 = 15
x**1, 1..6 = 21
x**1, 1..7 = 28
dbQ: powersum t 2, s 1/12, c [-1 => 1, 0 => 1/2, 1 => 1/12]
dbQ: powersum a[2] [3 => 1/3, 2 => 1/2, 1 => 1/6]
x**2, 1..0 = 0
x**2, 1..1 = 1
x**2, 1..2 = 5
x**2, 1..3 = 14
x**2, 1..4 = 30
x**2, 1..5 = 55
x**2, 1..6 = 91
x**2, 1..7 = 140
dbQ: powersum t 3, s 0, c [-1 => 1, 0 => 1/2, 1 => 1/12, 2 => 0]
dbQ: powersum a[3] [4 => 1/4, 3 => 1/2, 2 => 1/4, 1 => 0]
x**3, 1..0 = 0
x**3, 1..1 = 1
x**3, 1..2 = 9
x**3, 1..3 = 36
x**3, 1..4 = 100
x**3, 1..5 = 225
x**3, 1..6 = 441
x**3, 1..7 = 784
dbQ: powersum t 4, s -1/720, c [-1 => 1, 0 => 1/2, 1 => 1/12, 2 => 0, 3 => -1/720]
dbQ: powersum a[4] [5 => 1/5, 4 => 1/2, 3 => 1/3, 2 => 0, 1 => -1/30]
x**4, 1..0 = 0
x**4, 1..1 = 1
x**4, 1..2 = 17
x**4, 1..3 = 98
x**4, 1..4 = 354
x**4, 1..5 = 979
x**4, 1..6 = 2275
x**4, 1..7 = 4676
dbQ: powersum t 5, s 0, c [-1 => 1, 0 => 1/2, 1 => 1/12, 2 => 0, 3 => -1/720, 4 => 0]
dbQ: powersum a[5] [6 => 1/6, 5 => 1/2, 4 => 5/12, 3 => 0, 2 => -1/12, 1 => 0]
x**5, 1..0 = 0
x**5, 1..1 = 1
x**5, 1..2 = 33
x**5, 1..3 = 276
x**5, 1..4 = 1300
x**5, 1..5 = 4425
x**5, 1..6 = 12201
x**5, 1..7 = 29008
dbQ: powersum t 6, s 1/30240, c [-1 => 1, 0 => 1/2, 1 => 1/12, 2 => 0, 3 => -1/720, 4 => 0, 5 => 1/30240]
dbQ: powersum a[6] [7 => 1/7, 6 => 1/2, 5 => 1/2, 4 => 0, 3 => -1/6, 2 => 0, 1 => 1/42]
x**6, 1..0 = 0
x**6, 1..1 = 1
x**6, 1..2 = 65
x**6, 1..3 = 794
x**6, 1..4 = 4890
x**6, 1..5 = 20515
x**6, 1..6 = 67171
x**6, 1..7 = 184820
dbQ: powersum t 7, s 0, c [-1 => 1, 0 => 1/2, 1 => 1/12, 2 => 0, 3 => -1/720, 4 => 0, 5 => 1/30240, 6 => 0]
dbQ: powersum a[7] [8 => 1/8, 7 => 1/2, 6 => 7/12, 5 => 0, 4 => -7/24, 3 => 0, 2 => 1/12, 1 => 0]
x**7, 1..0 = 0
x**7, 1..1 = 1
x**7, 1..2 = 129
x**7, 1..3 = 2316
x**7, 1..4 = 18700
x**7, 1..5 = 96825
x**7, 1..6 = 376761
x**7, 1..7 = 1200304
dbQ: powersum t 8, s -1/1209600, c [-1 => 1, 0 => 1/2, 1 => 1/12, 2 => 0, 3 => -1/720, 4 => 0, 5 => 1/30240, 6 => 0, 7 => -1/1209600]
dbQ: powersum a[8] [9 => 1/9, 8 => 1/2, 7 => 2/3, 6 => 0, 5 => -7/15, 4 => 0, 3 => 2/9, 2 => 0, 1 => -1/30]
x**8, 1..0 = 0
x**8, 1..1 = 1
x**8, 1..2 = 257
x**8, 1..3 = 6818
x**8, 1..4 = 72354
x**8, 1..5 = 462979
x**8, 1..6 = 2142595
x**8, 1..7 = 7907396
dbQ: powersum t 9, s 0, c [-1 => 1, 0 => 1/2, 1 => 1/12, 2 => 0, 3 => -1/720, 4 => 0, 5 => 1/30240, 6 => 0, 7 => -1/1209600, 8 => 0]
dbQ: powersum a[9] [10 => 1/10, 9 => 1/2, 8 => 3/4, 7 => 0, 6 => -7/10, 5 => 0, 4 => 1/2, 3 => 0, 2 => -3/20, 1 => 0]
x**9, 1..0 = 0
x**9, 1..1 = 1
x**9, 1..2 = 513
x**9, 1..3 = 20196
x**9, 1..4 = 282340
x**9, 1..5 = 2235465
x**9, 1..6 = 12313161
x**9, 1..7 = 52666768
dbQ: powersum t 10, s 1/47900160, c [-1 => 1, 0 => 1/2, 1 => 1/12, 2 => 0, 3 => -1/720, 4 => 0, 5 => 1/30240, 6 => 0, 7 => -1/1209600, 8 => 0, 9 => 1/47900160]
dbQ: powersum a[10] [11 => 1/11, 10 => 1/2, 9 => 5/6, 8 => 0, 7 => -1, 6 => 0, 5 => 1, 4 => 0, 3 => -1/2, 2 => 0, 1 => 5/66]
x**10, 1..0 = 0
x**10, 1..1 = 1
x**10, 1..2 = 1025
x**10, 1..3 = 60074
x**10, 1..4 = 1108650
x**10, 1..5 = 10874275
x**10, 1..6 = 71340451
x**10, 1..7 = 353815700
dbQ: powersum t 11, s 0, c [-1 => 1, 0 => 1/2, 1 => 1/12, 2 => 0, 3 => -1/720, 4 => 0, 5 => 1/30240, 6 => 0, 7 => -1/1209600, 8 => 0, 9 => 1/47900160, 10 => 0]
dbQ: powersum a[11] [12 => 1/12, 11 => 1/2, 10 => 11/12, 9 => 0, 8 => -11/8, 7 => 0, 6 => 11/6, 5 => 0, 4 => -11/8, 3 => 0, 2 => 5/12, 1 => 0]
x**11, 1..0 = 0
x**11, 1..1 = 1
x**11, 1..2 = 2049
x**11, 1..3 = 179196
x**11, 1..4 = 4373500
x**11, 1..5 = 53201625
x**11, 1..6 = 415998681
x**11, 1..7 = 2393325424
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(2.628159921193E+19, 8192) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(17766604800, 2.628159921193E+19) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(12, 0) #4 {main}
dbQ: succes -317/100590336000 - -1/261273600 = 17/25147584000, gcd 261273600
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(1.2045732972134E+19, 512) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(-17004556800, 1.2045732972134E+19) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(12, 0) #4 {main}
dbQ: succes 17/25147584000 - 1/479001600 = -71/50295168000, gcd 239500800
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(4.8182931888538E+19, 3072) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(-17723059200, 4.8182931888538E+19) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(12, 0) #4 {main}
dbQ: succes -71/50295168000 + 1/958003200 = -37/100590336000, gcd 479001600
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(6.2637811455099E+20, -1024) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(-330990105600, 6.2637811455099E+20) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(12, 0) #4 {main}
dbQ: succes -37/100590336000 - 1/6227020800 = -691/1307674368000, gcd 479001600
dbQ: powersum t 12, s -691/1307674368000, c [-1 => 1, 0 => 1/2, 1 => 1/12, 2 => 0, 3 => -1/720, 4 => 0, 5 => 1/30240, 6 => 0, 7 => -1/1209600, 8 => 0, 9 => 1/47900160, 10 => 0, 11 => -691/1307674368000]
dbQ: powersum a[12] [13 => 1/13, 12 => 1/2, 11 => 1, 10 => 0, 9 => -11/6, 8 => 0, 7 => 22/7, 6 => 0, 5 => -33/10, 4 => 0, 3 => 5/3, 2 => 0, 1 => -691/2730]
x**12, 1..0 = 0
x**12, 1..1 = 1
x**12, 1..2 = 4097
x**12, 1..3 = 535538
x**12, 1..4 = 17312754
x**12, 1..5 = 261453379
x**12, 1..6 = 2438235715
x**12, 1..7 = 16279522916
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(3.0066149498447E+21, -65536) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(1820972482560, 3.0066149498447E+21) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(13, 0) #4 {main}
dbQ: succes -691/2615348736000 + 1/1149603840 = 1/1651104000, gcd 1149603840
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(9.6631334476186E+19, 40960) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(26824089600, 9.6631334476186E+19) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(13, 0) #4 {main}
dbQ: succes -43/79252992000 + 1/1219276800 = 11/39626496000, gcd 1219276800
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(1.0353357265306E+20, 6144) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(-10886400000, 1.0353357265306E+20) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(13, 0) #4 {main}
dbQ: succes 11/39626496000 + -1/2612736000 = -1/9510359040, gcd 435456000
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(5.4665726360814E+19, -49152) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(3762339840, 5.4665726360814E+19) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(13, 0) #4 {main}
dbQ: succes -1/9510359040 + 1/5748019200 = 1/14529715200, gcd 104509440
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(1.8095367753695E+20, -5120) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(-2075673600, 1.8095367753695E+20) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(13, 0) #4 {main}
dbQ: succes 1/14529715200 - 1/12454041600 = -1/87178291200, gcd 2075673600
dbQ: powersum t 13, s 0, c [-1 => 1, 0 => 1/2, 1 => 1/12, 2 => 0, 3 => -1/720, 4 => 0, 5 => 1/30240, 6 => 0, 7 => -1/1209600, 8 => 0, 9 => 1/47900160, 10 => 0, 11 => -691/1307674368000, 12 => 0]
dbQ: powersum a[13] [14 => 1/14, 13 => 1/2, 12 => 13/12, 11 => 0, 10 => -143/60, 9 => 0, 8 => 143/28, 7 => 0, 6 => -143/20, 5 => 0, 4 => 65/12, 3 => 0, 2 => -691/420, 1 => 0]
x**13, 1..0 = 0
x**13, 1..1 = 1
x**13, 1..2 = 8193
x**13, 1..3 = 1602516
x**13, 1..4 = 68711380
x**13, 1..5 = 1289414505
x**13, 1..6 = 14350108521
x**13, 1..7 = 111239118928
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(4.5099224247671E+22, -122880) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(-3874164940800, 4.5099224247671E+22) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(14, 0) #4 {main}
dbQ: succes 691/7846046208000 - 1/5748019200 = -337/3923023104000, gcd 5748019200
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(2.3916255282856E+22, -2048) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(1868541696000, 2.3916255282856E+22) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(14, 0) #4 {main}
dbQ: succes -337/3923023104000 - -1/6096384000 = 613/7846046208000, gcd 3048192000
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(8.6098519018281E+22, 8192) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(-1119296102400, 8.6098519018281E+22) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(14, 0) #4 {main}
dbQ: succes 613/7846046208000 - 1/10973491200 = -17/1307674368000, gcd 10973491200
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(3.7582686873059E+22, 43008) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(819092736000, 3.7582686873059E+22) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(14, 0) #4 {main}
dbQ: succes -17/1307674368000 - -1/28740096000 = 19/871782912000, gcd 14370048000
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(6.5143323913303E+22, 270336) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(547977830400, 6.5143323913303E+22) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(14, 0) #4 {main}
dbQ: succes 19/871782912000 - 1/74724249600 = 1/118879488000, gcd 24908083200
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(2.0727421245142E+22, -2048) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(293236070400, 2.0727421245142E+22) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(14, 0) #4 {main}
dbQ: succes 1/118879488000 + 1/174356582400 = 37/2615348736000, gcd 7925299200
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(3.4200245054484E+24, -2048) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(45768602880000, 3.4200245054484E+24) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(14, 0) #4 {main}
dbQ: succes 37/2615348736000 - 1/1307674368000 = 1/74724249600, gcd 1307674368000
dbQ: powersum t 14, s 1/74724249600, c [-1 => 1, 0 => 1/2, 1 => 1/12, 2 => 0, 3 => -1/720, 4 => 0, 5 => 1/30240, 6 => 0, 7 => -1/1209600, 8 => 0, 9 => 1/47900160, 10 => 0, 11 => -691/1307674368000, 12 => 0, 13 => 1/74724249600]
dbQ: powersum a[14] [15 => 1/15, 14 => 1/2, 13 => 7/6, 12 => 0, 11 => -91/30, 10 => 0, 9 => 143/18, 8 => 0, 7 => -143/10, 6 => 0, 5 => 91/6, 4 => 0, 3 => -691/90, 2 => 0, 1 => 7/6]
x**14, 1..0 = 0
x**14, 1..1 = 1
x**14, 1..2 = 16385
x**14, 1..3 = 4799354
x**14, 1..4 = 273234810
x**14, 1..5 = 6376750435
x**14, 1..6 = 84740914531
x**14, 1..7 = 762963987380
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(4.6903193217578E+24, -73728) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(-71884728115200, 4.6903193217578E+24) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(15, 0) #4 {main}
dbQ: succes 1/149448499200 + -691/31384184832000 = -37/2414168064000, gcd 149448499200
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(8.3260106303393E+22, -8192) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(1138107801600, 8.3260106303393E+22) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(15, 0) #4 {main}
dbQ: succes -37/2414168064000 + 1/34488115200 = 1/73156608000, gcd 34488115200
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(3.5679261960438E+21, 16384) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(-24385536000, 3.5679261960438E+21) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(15, 0) #4 {main}
dbQ: succes 1/73156608000 + -1/48771072000 = -1/146313216000, gcd 24385536000
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(1.6055667882197E+22, 122880) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(36578304000, 1.6055667882197E+22) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(15, 0) #4 {main}
dbQ: succes -1/146313216000 + 1/109734912000 = 1/438939648000, gcd 36578304000
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(1.5138201146071E+23, 16384) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(-94058496000, 1.5138201146071E+23) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(15, 0) #4 {main}
dbQ: succes 1/438939648000 + -1/344881152000 = -1/1609445376000, gcd 31352832000
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(1.6837043719131E+24, -8192) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(563305881600, 1.6837043719131E+24) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(15, 0) #4 {main}
dbQ: succes -1/1609445376000 + 1/1046139494400 = 1/2988969984000, gcd 80472268800
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(7.8171988695963E+24, 4096) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(-373621248000, 7.8171988695963E+24) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(15, 0) #4 {main}
dbQ: succes 1/2988969984000 - 1/2615348736000 = -1/20922789888000, gcd 373621248000
dbQ: powersum t 15, s 0, c [-1 => 1, 0 => 1/2, 1 => 1/12, 2 => 0, 3 => -1/720, 4 => 0, 5 => 1/30240, 6 => 0, 7 => -1/1209600, 8 => 0, 9 => 1/47900160, 10 => 0, 11 => -691/1307674368000, 12 => 0, 13 => 1/74724249600, 14 => 0]
dbQ: powersum a[15] [16 => 1/16, 15 => 1/2, 14 => 5/4, 13 => 0, 12 => -91/24, 11 => 0, 10 => 143/12, 9 => 0, 8 => -429/16, 7 => 0, 6 => 455/12, 5 => 0, 4 => -691/24, 3 => 0, 2 => 35/4, 1 => 0]
x**15, 1..0 = 0
x**15, 1..1 = 1
x**15, 1..2 = 32769
x**15, 1..3 = 14381676
x**15, 1..4 = 1088123500
x**15, 1..5 = 31605701625
x**15, 1..6 = 501790686201
x**15, 1..7 = 5249352196144
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(7.0354789826367E+25, -8192) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(152885814681600, 7.0354789826367E+25) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(16, 0) #4 {main}
dbQ: succes -1/448345497600 - -691/156920924160000 = 31/14265538560000, gcd 448345497600
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(3.4439407607313E+24, 8192) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(-6781617561600, 3.4439407607313E+24) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(16, 0) #4 {main}
dbQ: succes 31/14265538560000 - 1/241416806400 = -103/52306974720000, gcd 21946982400
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(2.2959605071542E+25, 2048000) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(7096190976000, 2.2959605071542E+25) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(16, 0) #4 {main}
dbQ: succes -103/52306974720000 - -1/438939648000 = 97/313841848320000, gcd 73156608000
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(3.7883348368044E+26, 8192) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(-196754697216000, 3.7883348368044E+26) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(16, 0) #4 {main}
dbQ: succes 97/313841848320000 - 1/1207084032000 = -163/313841848320000, gcd 1207084032000
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(1.4070957965273E+27, -344064) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(-416961312768000, 1.4070957965273E+27) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(16, 0) #4 {main}
dbQ: succes -163/313841848320000 - -1/4483454976000 = -31/104613949440000, gcd 4483454976000
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(1.6416117626152E+27, -8192) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(-591068814336000, 1.6416117626152E+27) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(16, 0) #4 {main}
dbQ: succes -31/104613949440000 - 1/15692092416000 = -113/313841848320000, gcd 5230697472000
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(1.3132894100922E+28, -32768) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(-4414708666368000, 1.3132894100922E+28) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(16, 0) #4 {main}
dbQ: succes -113/313841848320000 + 1/41845579776000 = -211/627683696640000, gcd 20922789888000
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(2.2325919971567E+29, 32768) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(-75677731024896000, 2.2325919971567E+29) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(16, 0) #4 {main}
dbQ: succes -211/627683696640000 - 1/355687428096000 = -3617/10670622842880000, gcd 20922789888000
dbQ: powersum t 16, s -3617/10670622842880000, c [-1 => 1, 0 => 1/2, 1 => 1/12, 2 => 0, 3 => -1/720, 4 => 0, 5 => 1/30240, 6 => 0, 7 => -1/1209600, 8 => 0, 9 => 1/47900160, 10 => 0, 11 => -691/1307674368000, 12 => 0, 13 => 1/74724249600, 14 => 0, 15 => -3617/10670622842880000]
dbQ: powersum a[16] [17 => 1/17, 16 => 1/2, 15 => 4/3, 14 => 0, 13 => -14/3, 12 => 0, 11 => 52/3, 10 => 0, 9 => -143/3, 8 => 0, 7 => 260/3, 6 => 0, 5 => -1382/15, 4 => 0, 3 => 140/3, 2 => 0, 1 => -3617/510]
x**16, 1..0 = 0
x**16, 1..1 = 1
x**16, 1..2 = 65537
x**16, 1..3 = 43112258
x**16, 1..4 = 4338079554
x**16, 1..5 = 156925970179
x**16, 1..6 = 2978035877635
x**16, 1..7 = 36210966447236
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(3.8273005665544E+28, -32768) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(14854583026483200, 3.8273005665544E+28) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(17, 0) #4 {main}
dbQ: succes -3617/21341245685760000 + 1/1793381990400 = 251/646704414720000, gcd 1793381990400
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(6.0888872649729E+29, -884736) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(-210549838786560000, 6.0888872649729E+29) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(17, 0) #4 {main}
dbQ: succes 251/646704414720000 + -691/941525544960000 = -1703/4924902850560000, gcd 9510359040000
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(9.5116345440996E+27, -65536) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(1635840280166400, 9.5116345440996E+27) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(17, 0) #4 {main}
dbQ: succes -1703/4924902850560000 + 1/1931334451200 = 11/63959777280000, gcd 1931334451200
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(2.8074482125442E+26, 458752) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(-15676416000000, 2.8074482125442E+26) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(17, 0) #4 {main}
dbQ: succes 11/63959777280000 + -1/4389396480000 = -1/17908737638400, gcd 627056640000
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(2.5940821483908E+26, -32768) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(3423729254400, 2.5940821483908E+26) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(17, 0) #4 {main}
dbQ: succes -1/17908737638400 + 1/14485008384000 = 13/984980570112000, gcd 263363788800
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(6.1825624536647E+28, 32768) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(-168991764480000, 6.1825624536647E+28) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(17, 0) #4 {main}
dbQ: succes 13/984980570112000 + -1/62768369664000 = -1/365849926041600, gcd 4828336128000
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(9.1855213597305E+28, -10485760) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(114776447385600, 9.1855213597305E+28) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(17, 0) #4 {main}
dbQ: succes -1/365849926041600 + 1/251073478656000 = 1/800296713216000, gcd 7173527961600
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(5.6931095927496E+29, 8192) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(-88921857024000, 5.6931095927496E+29) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(17, 0) #4 {main}
dbQ: succes 1/800296713216000 - 1/711374856192000 = -1/6402373705728000, gcd 88921857024000
dbQ: powersum t 17, s 0, c [-1 => 1, 0 => 1/2, 1 => 1/12, 2 => 0, 3 => -1/720, 4 => 0, 5 => 1/30240, 6 => 0, 7 => -1/1209600, 8 => 0, 9 => 1/47900160, 10 => 0, 11 => -691/1307674368000, 12 => 0, 13 => 1/74724249600, 14 => 0, 15 => -3617/10670622842880000, 16 => 0]
dbQ: powersum a[17] [18 => 1/18, 17 => 1/2, 16 => 17/12, 15 => 0, 14 => -17/3, 13 => 0, 12 => 221/9, 11 => 0, 10 => -2431/30, 9 => 0, 8 => 1105/6, 7 => 0, 6 => -11747/45, 5 => 0, 4 => 595/3, 3 => 0, 2 => -3617/60, 1 => 0]
x**17, 1..0 = 0
x**17, 1..1 = 1
x**17, 1..2 = 131073
x**17, 1..3 = 129271236
x**17, 1..4 = 17309140420
x**17, 1..5 = 780248593545
x**17, 1..6 = 17706908038281
x**17, 1..7 = 250337422025488
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(5.7409508498316E+29, -32768) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(-31590423760896000, 5.7409508498316E+29) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(18, 0) #4 {main}
dbQ: succes 3617/64023737057280000 - 1/8966909952000 = -271/4924902850560000, gcd 8966909952000
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(3.245845288174E+31, 32768) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(1617033910947840000, 3.245845288174E+31) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(18, 0) #4 {main}
dbQ: succes -271/4924902850560000 - -691/6590678814720000 = 22327/448166159400960000, gcd 72425041920000
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(7.7900286916176E+30, 196608) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(-60078020773478400, 7.7900286916176E+30) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(18, 0) #4 {main}
dbQ: succes 22327/448166159400960000 - 1/17382010060800 = -10369/1344498478202880000, gcd 5794003353600
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(6.491690576348E+31, 65536) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(843848305090560000, 6.491690576348E+31) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(18, 0) #4 {main}
dbQ: succes -10369/1344498478202880000 - -1/48283361280000 = 17477/1344498478202880000, gcd 48283361280000
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(2.5317593247757E+32, 32768) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(1946509911650304000, 2.5317593247757E+32) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(18, 0) #4 {main}
dbQ: succes 17477/1344498478202880000 - 1/188305108992000 = 10337/1344498478202880000, gcd 188305108992000
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(1.1077048036454E+19, -32768) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(1.1077048036454E+19, 1.2658796623879E+33) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(18, 0) #4 {main}
dbQ: succes 10337/1344498478202880000 - -1/941525544960000 = 181/20684591972352000, gcd 941525544960000
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(8.8286991838333E+31, -786432) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(751868501852160000, 8.8286991838333E+31) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(18, 0) #4 {main}
dbQ: succes 181/20684591972352000 - 1/4268249137152000 = 229/26889969564057600, gcd 328326856704000
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(3.443192681695E+32, 1638400) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(2959177126787481600, 3.443192681695E+32) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(18, 0) #4 {main}
dbQ: succes 229/26889969564057600 + 1/12804747411456000 = 2311/268899695640576000, gcd 1280474741145600
dbQ: catch sub TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(2.8085292734917E+20, 65536) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(75): Fract->__construct(2.8085292734917E+20, 3.2710330476102E+34) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->sub(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(18, 0) #4 {main}
dbQ: succes 2311/268899695640576000 - 1/121645100408832000 = 43867/5109094217170944000, gcd 6402373705728000
dbQ: powersum t 18, s 43867/5109094217170944000, c [-1 => 1, 0 => 1/2, 1 => 1/12, 2 => 0, 3 => -1/720, 4 => 0, 5 => 1/30240, 6 => 0, 7 => -1/1209600, 8 => 0, 9 => 1/47900160, 10 => 0, 11 => -691/1307674368000, 12 => 0, 13 => 1/74724249600, 14 => 0, 15 => -3617/10670622842880000, 16 => 0, 17 => 43867/5109094217170944000]
dbQ: catch 43867/5109094217170944000 mult 6402373705728000: TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(2.8085292734917E+20, 983040) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(86): Fract->__construct(2.8085292734917E+20, 5109094217170944000) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(133): Fract->mult(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(18, 0) #4 {main}
dbQ: succes 43867/5109094217170944000 * 6402373705728000 = 43867/798, gcd 1, 6402373705728000
dbQ: powersum a[18] [19 => 1/19, 18 => 1/2, 17 => 3/2, 16 => 0, 15 => -34/5, 14 => 0, 13 => 34, 12 => 0, 11 => -663/5, 10 => 0, 9 => 1105/3, 8 => 0, 7 => -23494/35, 6 => 0, 5 => 714, 4 => 0, 3 => -3617/10, 2 => 0, 1 => 43867/798]
x**18, 1..0 = 0
x**18, 1..1 = 1
x**18, 1..2 = 262145
x**18, 1..3 = 387682634
x**18, 1..4 = 69107159370
x**18, 1..5 = 3883804424995
x**18, 1..6 = 105443761093411
dbQ: catch add TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(2.2533210237614E+19, 36) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(64): Fract->__construct(2.2533210237614E+19, 90972) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(141): Fract->add(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(18, 7) #4 {main}
dbQ: succes 28237105560913739/114 + 43867/798 = 1733857359003860/7, gcd 114
x**18, 1..7 = 1733857359003860
dbQ: catch 43867/5109094217170944000 div 2: TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(1.0218188434342E+19, -1) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(99): Fract->__construct(43867, 1.0218188434342E+19) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->div(2) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(19, 0) #4 {main}
catch TypeError: intdiv(): Argument #1 ($num1) must be of type int, float given in /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php:41 Stack trace: #0 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(41): intdiv(1.0218188434342E+19, -1) #1 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(105): Fract->__construct(43867, 1.0218188434342E+19) #2 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(127): Fract->div(Object(Fract)) #3 /home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php(176): powersum(19, 0) #4 {main}

End f03powersum.php

args

f03powersum.php

/home/ch45859/web/wlkl.ch/public_html/inf/php/f03powersum.php

*** code does not have a span berfore first <br>***
<?php
/************************
    sum of a power e of the first x natural numbers
    sum(y=0 to x: y**e) = p(x) = sum(f=e+1 downto 1: a[e][f] * x ** f)    

    p(x)-p(x-1) = x**e
    p(x)-p(x-1) =   sum(f=e+1 downto 1: a[e][f] * (x ** f - (x-1) ** f)) 
                = - sum(f=e+1 downto 1: a[e][f] * sum(g=f-1 downto 0:          binominal(f, g) x ** g * (-1) ** (f-g))) 
                = - sum(g=e downto 0: x ** g * sum(f=e+1 downto g+1: a[e][f] * binominal(f, g)        * (-1) ** (f-g))) 
    yielding
        for g=e: 1 = - a[e+1] * binominal(e+1, e) x ** g * (-1) ** 1 ==> = a[e][e+1] = 1 / (e+1)
        for g<e: 0 = sum(f=e+1 downto g+1: a[e][f] * binominal(f, g)        * (-1) ** (f-g))
                   = sum(f=e+1 downto g+1: a[e][f] * binominal(f, f-g)      * (-1) ** (f-g))
                   = sum(f=e+1 downto g+1: a[e][f] * prod(h=f downto g+1: h) / (f-g)! * (-1) ** (f-g))
                   = sum(f=e+1 downto g+1: (cc[e, f] / (e+1) * prod(h=e+1 downto f+1: h)) * prod(h=f downto f-g+1: h) / (f-g)! * (-1) ** (f-g)) 
                   = prod(h=e+1 downto g+1) / (e+1) * sum(f=e+1 downto g+1: cc[e, f] / (f-g)! * (-1) ** (f-g))
                 0 = sum(f=e+1 downto g+1: cc[e, f] / (f-g)! * (-1) ** (f-g)) ==> equations depend on e-g, but not on e itself, except ccm, which thus can be simplified to c[e-f] = c [e-g-(f-g)]
                 0 = sum(f=e+1 downto g+1: c[e-f] / (f-g)! * (-1) ** (f-g)) ==> depends only on e-g
                    ==> c[e-1] = sum(f=2 to e+1: c[e-f] / (f)! * (-1) ** (f)) by setting g=0 and solving for c[e-1] (f=1)
   with c[-1] = 1 the assumption a[e][f] = c[e-f] / (e+1) * prod(h=e+1 downto f+1: h) is also correct for a[e][e+1] 
************************/
require_once('env.php');
outBegin();
class Fract {
    public static function gcd($a, $b) {
        [$g, $s] = [abs($a), abs($b)];
        if ($g < $s)
            [$g, $s] = [$s, $g];
        while (0 !== $m = $g % $s)
            [$g, $s] = [$s, $m];
        return $s;
    }
    readonly int $num, $den;
    public function __construct ($n, $d=1) {
        if ($d === 0) {
            err("denominator 0 in ($n, $d)"); 
        } elseif ($n === 0) {
             [$this->num, $this->den] = [$n, 1];
        } else {
            $s = self::gcd($n, $d);
            [$this->num, $this->den] = $d < 0 ? [- intdiv($n, $s), - intdiv($d, $s)] : [intdiv($n, $s), intdiv($d, $s)];
        }
    }
    public function __tostring () {
        return "$this->num" . ($this->den === 1 ? '' : "/$this->den");
    }
    public function reduce () {
        if ($this->den === 0) {
            err("denominator 0 in $this"); 
        } elseif ($this->num === 0) {
             $this->den = 1;
        } else {
            [$g, $s] = [abs($this->num), abs($this->den)];
            if ($g < $s)
                [$g, $s] = [$s, $g];
            while (0 !== $m = $g % $s)
                [$g, $s] = [$s, $m];
            [$this->num, $this->den] = $this->den < 0 ? [- intdiv($this->num, $s), - intdiv($this->den, $s)] : [intdiv($this->num, $s), intdiv($this->den, $s)];
        }
    return $this;
    }
    public function add($s) {
        try {
            return is_object($s) ? (new Fract($this->num * $s->den + $this->den * $s->num, $this->den * $s->den)) : (new Fract($this->num + $this->den * $s, $this->den));
        } catch (Throwable $e) {
            dbq("catch add $e");
            $g = self::gcd($this->den, $s->den);
            $r = new Fract($this->num * ($s->den / $g) + ($d = $this->den / $g) * $s->num, $d * $s->den);
            dbq("succes $this + $s = $r, gcd $g");
            return $r;
        }
    }
    public function sub($s) {
        try {
            return is_object($s) ? (new Fract($this->num * $s->den - $this->den * $s->num, $this->den * $s->den)) : (new Fract($this->num - $this->den * $s, $this->den));
        } catch (Throwable $e) {
            dbq("catch sub $e");
            $g = self::gcd($this->den, $s->den);
            $r = new Fract($this->num * ($s->den / $g) - ($d = $this->den / $g) * $s->num, $d * $s->den);
            dbq("succes $this - $s = $r, gcd $g");
            return $r;
        }
    }
    public function mult($f) {
       try {
           return is_object($f) ? new Fract($this->num * $f->num, $this->den * $f->den) : new Fract($this->num * $f, $this->den);
        } catch (Throwable $e) {
            dbq("catch $this mult $f: $e");
            is_object($f) or $f = new Fract($f); 
            $g = self::gcd($this->num, $f->den);
            $h = self::gcd($this->den, $f->num);
            $r = new Fract(($this->num/$g) * ($f->num/$h) , ($this->den/$h) * ($f->den/$g)); 
            dbq("succes $this * $f = $r, gcd $g, $h");
            return $r;
        }
    }
    public function div($f) {
       try {
            return is_object($f) ? (new Fract($this->num * $f->den, $this->den * $f->num)) : (new Fract($this->num, $this->den * $f));
        } catch (Throwable $e) {
            dbq("catch $this div $f: $e");
            is_object($f) or $f = new Fract($f); 
            $g = self::gcd($this->num, $f->num);
            $h = self::gcd($this->den, $f->den);
            $r = new Fract(($this->num/$g) * ($f->den/$h) , ($this->den/$h) * ($f->num/$g)); 
            dbq("succes $this / $f = $r, gcd $g, $h");
            return $r;
        }
    }
    public function eq($o) {
        return is_object($o) ? ($this->num === $o->num and $this->den === $o->den) : ($this->num === $o and $this->den === 1);
    }
}
out("30/-45", $n = new Fract('30',-45), "$n");
out("30/45 + 3/36", $n = (new Fract(30,45))->add(new Fract(-3,-36)), "$n");
out("4/15 * 70", $n = (new Fract(4,15))->mult(70), "$n");

function powersum(int $e, int $x) {
    static $c = [-1 => new Fract(1)], $a = [0 => [1=> new Fract(1)]];
    if (!isset($a[$e])) 
        for ($t=count($a); $t <= $e; $t++) {
            #   ==> c[e-1] = sum(f=2 to e+1: c[e-f] / (f)! * (-1) ** (f))
            $pF =  1;
            $s = new Fract(0);
            for ($f=2; $f <= $t+1; $f++) { 
                $pF *= $f;
                $s = ($f % 2) ? $s->sub($c[$t-$f]->div($pF)) : $s->add($c[$t-$f]->div($pF)); 
            }
            $c[$t-1] = $s;
            dbq("powersum t $t, s $s, c", array_map(fn ($v) => "$v", $c));
            $pG = new Fract(1, $t+1);
            for ($i=$t+1; $i>=1 ; $i--) {
                $a[$t][$i] = $c[$t-$i]->mult($pG);
                $pG = $pG->mult($i);
            }
            krsort($a[$t]);
            dbq("powersum a[$t]", array_map(fn ($v) => "$v", $a[$t]));
        }
    $s = new Fract(0);
    for ($f=$e+1;$f>0;$f--) 
        $s = $s->add($a[$e][$f])->mult($x); 
    return $s;
}
/*
$a[0][1] = $c[0] = new Fract(1);
for ($n=1; $n<16; $n++) { # compute coefficiehts for sum(i**n)
    $pF =  1;
    $s = new Fract(0);
    for ($i=2; $i<= $n+1; $i++) {
        $pF *= $i;
        $s = ($i % 2) ? $s->sub($c[$n+1-$i]->div($pF)) : $s->add($c[$n+1-$i]->div($pF));
    }
    $c[$n] = $s;
    $pG = new Fract(1, $n+1);
    for ($i=$n+1; $i>=1 ; $i--) {
        $a[$n][$i] = $c[$n+1-$i]->mult($pG);
        $pG = $pG->mult($i);
    }
    krsort($a[$n]);
    out("n $n, s $s, c", $c, ", a[$n]", array_map(fn ($v) => "$v", $a[$n]));
    for ($x=0; $x<15; $x++) {
        $s = new Fract(0);
        for ($e=$n+1;$e>0;$e--)
            $s = $s->add($a[$n][$e])->mult($x);
        $q = 0;
        for ($i=1; $i<=$x; $i++)
            $q += $i**$n;
        out("sum x**$n to $x = $s check $q", $s->eq($q) ? '' : 'differ ****************');    
    }
}
*/

try {
    for ($e=0; $e<20; $e++)
        for ($x=0; $x<8; $x++) {
            $p = powersum($e, $x);
            $q = 0;
            for ($i=1; $i<=$x; $i++)
                $q += $i**$e;
            $p->eq($q) ? out("x**$e, 1..$x = $p") : err("x**$e, 1..$x = $p, check $q differs");
        }
} catch (Throwable $t) {
    out("catch $t");
}
outEnd(__file__);
?>