OFFSET
1,3
COMMENTS
The count excludes points on the base and edges.
FORMULA
a(n) = |{ (x, y) : 1 <= x <= 2n - 1, 1 <= y < min(x, 2n - x), and y divides x }|.
EXAMPLE
For n = 4, the triangle has x in [1,7]. Valid (x, y) points satisfying y < min(x, 8 - x) and y divides x are: (2,1), (3,1), (4,1), (4,2), (5,1). So a(4) = 5.
PROG
(Python)
def a(n): return sum(1 for y in range(1, n) for k in range(1, (2*n)//y + 1) if y < min(y*k, 2*n - y*k))
print([a(n) for n in range(1, 63)])
(PARI) a(n) = sum(x=1, 2*n-1, sumdiv(x, y, y < min(x, 2*n-x))); \\ Michel Marcus, Jul 11 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Rickey W. Austin, Jul 09 2025
STATUS
approved
