%I #5 Feb 05 2014 20:18:04
%S 1,3,7,11,19,25,37,41,53,61,77,89,101,121,131,149,167,183,205,225,247,
%T 269,293,319,349,373,401,425,457,487,527,559,583,629,655,701,731,779,
%U 807,851,887,935,971,1025,1061,1117,1155,1213,1253,1315,1357,1419,1461
%N Maximum entry in the n-th row of the triangle A097883.
%C All entries are odd.
%t a[0, 0] = 1; a[m_, n_] := a[m, n] = Block[{p = Sort[ Flatten[ Join[ Table[ a[i, j], {i, 0, m - 1}, {j, 0, i}], Table[ a[i, j], {i, m, m}, {j, 0, n - 1}]] ]]}, k = Complement[ Range[ p[[ -1]] + 1], p][[1]]; While[ Position[p, k] != {} || If[n == 0, GCD[k, a[m - 1, 0]] != 1, If[n == m, GCD[k, a[m - 1, m - 1]] != 1, GCD[k, a[m - 1, n]] != 1 || GCD[k, a[m - 1, n - 1]] != 1]], k++ ]; k]; Table[ Max[ Table[ a[m, n], {n, 0, m}]], {m, 0, 52}]
%Y Cf. A097883, A098380.
%K nonn
%O 0,2
%A _Leroy Quet_ and _Robert G. Wilson v_, Sep 04 2004
|