Let
N=36p-5q
a. What values of positive integers p & q trigger the lowest positive N?
b. What if the 2 words"positive " of a. were erased?
p=1, q =2
36- 25 =11
Dim i As Integer
Dim j As Integer
Dim k As Integer
Grd.Rows = 1
Grd.Cols = 4
k = 0
For i = 1 To 10
For j = 1 To 10
V1 = ((36) ^ i) - (5 ^ j)
k = k + 1
Grd.Rows = k + 1
Grd.TextMatrix(k, 1) = i
Grd.TextMatrix(k, 2) = j
Grd.TextMatrix(k, 3) = V1
Next
Next
Results:
p q Value
1 1 31
1 2 11
1 3 -89
1 4 -589
|
Posted by Veena IH
on 2021-02-11 07:19:53 |