You're right about the 3 equations and 3 unknowns, but the equations are quadratic not linear.
One of the math gurus here can tell us if this is solvable as a system of equations.Code:t * (t + 1) / 2 == p * (3 * p - 1) / 2 == h * (2 * h - 1) or (using ** to mean "to the power of") t**2 + t == 3*p**2 - p == 4*h**2 - 2*h
The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss
This could be written as 3 equations, 4 unkowns
t**2 + t == 2 s
3*p**2 - p == 2 s
4*h**2 - 2*h == 2 s
Some solutions for (h, p, t, s):
(0, 0, 0, 0)
(143, 165, 285, 40755)
(27693, 31977, 55385, 1533776805)
(5372251, 6203341, 10744501, 57722156241751)
(1042188953, 1203416145, 2084377905, 2172315626468283465)
Last edited by rcgldr; 08-30-2013 at 10:54 AM.
how in the world did you get up to question 45? I'm still on qn 3 lol... :|