OFFSET
1,8
FORMULA
a(n) = Sum_{j=1..floor(n/3)} Sum_{i=j..floor((n-j)/2)} sign(c(i/j) + c((n-i-j)/i) + c((n-i-j)/j)), where c(n) = ceiling(n) - floor(n).
EXAMPLE
a(9) = 3; [1,3,5], [2,2,5], [2,3,4] (Not counted: [1,1,7], [1,2,6], [1,4,4], [3,3,3]).
MATHEMATICA
Table[Sum[Sum[Sign[(Ceiling[i/j] - Floor[i/j]) + (Ceiling[(n - i - j)/j] - Floor[(n - i - j)/j]) + (Ceiling[(n - i - j)/i] - Floor[(n - i - j)/i])], {i, j, Floor[(n - j)/2]}], {j, Floor[n/3]}], {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Apr 13 2021
STATUS
approved