N=x ^{ 2}+y^{2}+10 z^{2} (x,y,z integers).
Find N .
Hint: N < 5000.
No Solution Yet  Submitted by Ady TZIDON 
No Rating 
re: computer solution 

The program actually contained a bug, that didn't affect the answer. The second line below should be inserted after the first line below in the original listing:
IF n  pn > 1 AND n < 10000 AND n MOD 2 = 0 THEN max = n  1
IF n  pn > 2 AND n < 10000 AND n MOD 2 = 1 THEN max = n  2
Without the second line, the result depended on the formability of the even number that follows the missing odd number. But that can't be assured; the new line catches it on the next formable odd number.
21, 87 and 133 are nonformable odd numbers that would have been missed had they been the highest, because 22, 88 and 134 are also not formable and so were not on the list of formable numbers.
Edited on January 28, 2013, 5:58 pm
Posted by Charlie on 20130128 17:55:49 