OFFSET
0,12
COMMENTS
Is 2262 the greatest n for which a(n) = 0? There are no others <= 10^5. - Robert Israel, Apr 24 2026
LINKS
Robert Israel, Table of n, a(n) for n = 0..10000
EXAMPLE
a(51) = 4 counts these triples : (6, 3, 5), (6, 5, 3), (7, 1, 2), (7, 2, 1).
MAPLE
f:= proc(n) local x, y, z;
add(nops(select(t -> max(t, (n-x^2)/t) < x, NumberTheory:-Divisors(n-x^2))), x=1..ceil(sqrt(n))-1)
end proc:
map(f, [$0..100]); # Robert Israel, Apr 23 2026
MATHEMATICA
t[n_, c_] := Module[{r}, r = Flatten[Table[If[n - x^2 <= 0, {},
Map[({x, #, Quotient[n - x^2, #]} &),
Select[Divisors[n - x^2], Divisible[n - x^2, #] &]]], {x, 1,
Floor[Sqrt[n - 1]]}], 1]; Select[r, Apply[c, #] &]];
c = (#1 > Max[#2, #3] &); Table[{n, t[n, c]}, {n, 1, 30}]
Join[{0}, Table[Length[t[n, c]], {n, 1, 130}]]
(* Peter J. C. Moses, Mar 29 2026 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 13 2026
STATUS
approved
