login
A308167
Number of integer-sided triangles with perimeter n and sides a, b, and c such that a <= b <= c and a|b.
0
0, 0, 1, 0, 1, 1, 2, 0, 2, 2, 3, 1, 2, 2, 5, 2, 3, 3, 4, 2, 5, 5, 6, 2, 4, 4, 7, 5, 6, 6, 7, 3, 6, 6, 9, 6, 7, 7, 10, 6, 7, 7, 8, 6, 11, 11, 12, 6, 8, 8, 11, 9, 10, 10, 13, 9, 12, 12, 13, 9, 10, 10, 15, 10, 13, 13, 14, 12, 15, 15, 16, 10, 11, 11, 16, 14, 17
OFFSET
1,7
FORMULA
a(n) = Sum_{k=1..floor(n/3)} Sum_{i=k..floor((n-k)/2)} sign(floor((i+k)/(n-i-k+1)) * (1 - ceiling(i/k) + floor(i/k)).
MATHEMATICA
Table[Sum[Sum[(1 - Ceiling[i/k] + Floor[i/k]) Sign[Floor[(i + k)/(n - i - k + 1)]], {i, k, Floor[(n - k)/2]}], {k, Floor[n/3]}], {n, 100}]
CROSSREFS
Cf. A308166.
Sequence in context: A144741 A352965 A103615 * A293665 A159632 A164733
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, May 15 2019
STATUS
approved