Reply To: Maths
The mystery of the silver bullet › Forums › The Intelligence Room › Maths › Reply To: Maths
24th October 2024 at 7:24 pm
#97943
Astralica
Participant
@USB-C
import math
for a in range(1, 1000):
for b in range(1, 1000):
a_b = math.factorial(a) + math.factorial(b)
n = math.log(a_b, 2)
if n.is_integer():
print("a =", a, ", b =", b, ", n =", int(n))
Checked all a, b less than 1,000.
Solutions:
a = 1, b = 1, n = 1
a = 2, b = 2, n = 2
a = 2, b = 3, n = 3
a = 3, b = 2, n = 3