OFFSET
1,2
COMMENTS
A divisor can be used for several sides.
A nondegenerate triangle is a triangle whose sides (u, v, w) are such that u + v > w, v + w > u and u + w > v.
LINKS
Felix Huber, Table of n, a(n) for n = 1..10000
Wikipedia, Triangle Inequality
FORMULA
a(p) = 3 for prime p.
EXAMPLE
a(4) = 6 because there are the 6 distinct nondegenerate triangles (1, 1, 1), (1, 2, 2), (1, 4, 4), (2, 2, 2), (2, 4, 4), (4, 4, 4) whose sides are divisors of 4. The triples (1, 1, 2), (1, 1, 4), (1, 2, 4), (2, 2, 4) are not sides of (nondegenerate) triangles.
MAPLE
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Felix Huber, Dec 27 2024
STATUS
approved