Both my Father and my Father's Grandfather were born in years that can be expressed as [(m)^n - (n)^m], where 'm' and 'n' are both positive integers. In which years were they born ?
(Note: (a)^b implies: 'a' raised to the power of 'b', or 'a' multiplies 'b' number of times).
m, n and year:
3 7 1844
2 11 1927
found by
CLS
n = 4
DO
FOR i = 1 TO n / 2
j = n - i
li = LOG(i) * j
IF li < 55 THEN
y = i ^ j - j ^ i
IF y > 1700 AND y < 1980 THEN
PRINT i, j, y
END IF
END IF
NEXT
n = n + 1
LOOP
|
Posted by Charlie
on 2003-04-02 03:22:19 |