On the iso-r-curve r=c we see that s is maximal when t is minimal. So we find from (10)
and (11)
(12) s <= n/t + sqrt(n + n2/t2).
With (8) this yields
(13) (n+1)/t <= s <= n/t + sqrt(n + n2/t2) .
Since c is greater when the iso-r-line runs more to the left in the picture, we find the
maximum value of c in (t,s) = (1,n+1) : r=c=n(n+2). So with (4) we find
(14) sqrt(3n) <= r <= n(n+2) .
We now find from (13)
<15> If t=1 then n+1 <= s <= n + sqrt(n+n2).
Hence we find after trial:
(16) (1, n+1, n(n+2) ) and (1, 2n, 2n+1) are solutions of (1) for any natural n.
And again, looking in the other corners of the picture :
(17) If 3n is a square then (sqrt(3n), sqrt(3n), sqrt(3n)) is a solution of (1).
.......If n+1 is a square then (sqrt(n+1), sqrt(n+1), 2n sqrt(n+1) ) is a solution of (1).
With (2), (5), (13) and (14), and looking at the picture, we find that the following BASIC
program yields for any given small n all solutions of (1):
10 INPUT N
20 FOR T=1 TO INT(SQRT(N+1))
30 FOR S=INT((N+1)/T) TO INT(N/T+SQRT(N+N*N/(T*T)))
40 FOR R=S TO N*(N+2)
50 IF R*S*T=N*(R+S+T) THEN PRINT T,S,R
60 NEXT R
70 NEXT S
80 NEXT T
90 FOR T=INT(SQRT(N+1)) TO INT(SQRT(3*N))
100 FOR S=T TO INT(N/T+SQRT(N+N*N/(T*T)))
110 FOR R=S TO N*(N+2)
120 IF R*S*T=N*(R+S+T) THEN PRINT T,S,R
130 NEXT R
140 NEXT S
150 NEXT T
For instance, for n=10 we have the following table of solutions (t,s,r):
(1,11,120), (1,12,65), (1,15,32), (1,20,21), (2,6,40), (2,10,12), (3,4,35), (3,5,16), (4,5,9)
and therefore f(10)=9.
We can now construct the following table of values f(n) with 1<=n<=12 by running the program
12 times:
n:....1....2....3....4....5....6....7....8....9...10...11...12
f:....1....2....5....5....8....8....8...14...13....9...14...17
click here to go back to my homepage
|
Op de iso-r-curve r=c zien we dat s maximaal is als t minimaal is. Dus vinden we met (10)
en (11)
(12) s <= n/t + wortel(n + n2/t2).
Met (8) levert dit
(13) (n+1)/t <= s <= n/t + wortel(n + n2/t2) .
Omdat c groter is naarmate de iso-r-lijn meer links op het plaatje loopt, vinden we de
maximale waarde van c in (t,s) = (1,n+1) : r=c=n(n+2). Dus vinden we met (4)
(14) wortel(3n) <= r <= n(n+2) .
We vinden nu met (13)
<15> Als t=1 dan n+1 <= s <= n + wortel(n+n2).
Daarna vinden we met proberen:
(16) (1, n+1, n(n+2) ) en (1, 2n, 2n+1) zijn oplossingen van (1) voor elke natuurlijke n.
Zo ook, kijkend naar de andere hoeken van het plaatje :
(17) Als 3n een kwadraat is, dan is (wortel(3n), wortel(3n), wortel(3n)) oplossing van (1).
.......Als n+1 kwadraat is, dan is (wortel(n+1), wortel(n+1), 2n wortel(n+1) )
oplossing van (1).
Met (2), (5), (13) en (14), en kijkend naar het plaatje, vinden we dat het volgende BASIC
program voor elk gegeven klein natuurlijk getal n alle oplossingen van (1) geeft:
10 INPUT N
20 FOR T=1 TO INT(SQRT(N+1))
30 FOR S=INT((N+1)/T) TO INT(N/T+SQRT(N+N*N/(T*T)))
40 FOR R=S TO N*(N+2)
50 IF R*S*T=N*(R+S+T) THEN PRINT T,S,R
60 NEXT R
70 NEXT S
80 NEXT T
90 FOR T=INT(SQRT(N+1)) TO INT(SQRT(3*N))
100 FOR S=T TO INT(N/T+SQRT(N+N*N/(T*T)))
110 FOR R=S TO N*(N+2)
120 IF R*S*T=N*(R+S+T) THEN PRINT T,S,R
130 NEXT R
140 NEXT S
150 NEXT T
Bijvoorbeeld, voor n=10 hebben we de volgende oplossingen (t,s,r):
(1,11,120), (1,12,65), (1,15,32), (1,20,21), (2,6,40), (2,10,12), (3,4,35), (3,5,16), (4,5,9)
en dus is f(10)=9.
We kunnen nu de volgende tabel construeren met waarden f(n) voor 1<=n<=12
door het programma 12 keer te runnen:
n:....1....2....3....4....5....6....7....8....9...10...11...12
f:....1....2....5....5....8....8....8...14...13....9...14...17
klik hier om naar mijn hoofdpagina te gaan
|