OFFSET
1,7
LINKS
Wikipedia, Integer Triangle
FORMULA
a(n) = Sum_{k=1..floor(n/3)} Sum_{i=k..floor((n-k)/2)} sign(floor((i+k)/(n-i-k+1))) * mu(k)^2, where mu is the Möbius function (A008683).
EXAMPLE
There exist A005044(12) = 3 integer-sided triangles with perimeter = 12; these three triangles have respectively sides: (2, 5, 5), (3, 4, 5) or (4, 4, 4). Only the last one: (4, 4, 4) has a smallest side length = 4 that is not squarefree, so a(12) = 2. - Bernard Schott, Jan 22 2023
MATHEMATICA
Table[Sum[Sum[ MoebiusMu[k]^2* Sign[Floor[(i + k)/(n - i - k + 1)]], {i, k, Floor[(n - k)/2]}], {k, Floor[n/3]}], {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, May 27 2019
STATUS
approved
