login
A391073
a(n) is the number of nondegenerate triangles (n, n + d, n + 2*d) with integer area for some nonnegative integers d.
1
0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 3, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 3, 0, 0, 1, 1, 0, 1, 0, 0, 4, 0, 0, 1, 0, 0, 3, 0, 0, 1, 0, 1, 4, 1, 0, 1, 0, 0, 1, 1, 0, 3, 1, 0, 1, 0, 3, 1, 0, 1, 1, 0, 0, 1, 1, 0, 6, 0, 0, 4, 0, 0, 1, 0, 0, 1, 2, 0, 3
OFFSET
0,16
COMMENTS
d < n because n + 2*d < n + (n + d).
EXAMPLE
The a(15) = 3 triangles are (15, 20, 25) with d = 5 and area 150, (15, 26, 37) with d = 11 and area 156, (15, 28, 41) with d = 13 and area 126.
MAPLE
A391073 := proc(n) local b, c, d, x; c := 0; for d to n - 1 do x := 3*(n + d)^2*(n + 3*d)*(n - d); if irem(x, 16) = 0 then x := 1/16*x; b := isqrt(x); if b*b = x then c := c + 1; end if; end if; end do; c; end proc: seq(A391073(n), n = 1 .. 88);
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Huber, Dec 09 2025
STATUS
approved