OFFSET
1,1
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
EXAMPLE
399^2 + 440^2 - 399*440 = 421^2, 56^2 + 615^2 - 56*615 = 589^2 and 399 + 440 + 421 = 56 + 615 + 589 = 1260. So 1260 is a term.
5159^2 + 5904^2 - 5159*5904 = 5569^2, 3344^2 + 7119^2 - 3344*7119 = 6169^2, 1287^2 + 7952^2 - 1287*7952 = 7393^2 and 5159 + 5904 + 5569 = 3344 + 7119 + 6169 = 1287 + 7952 + 7393 = 16632. So 16632 is a term.
PROG
(Ruby)
def A(n)
ary = []
(1..n).each{|i|
(i + 1..n).each{|j|
if i.gcd(j) == 1 && (i - j) % 3 > 0
x, y, z = j * j, i * j, i * i
ary << 2 * x + 5 * y + 2 * z
ary << 3 * x + 3 * y
end
}
}
ary
end
p A(100).group_by(&:to_i).select{|k, v| v.size > 1}.keys.sort[0..50]
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Dec 10 2021
STATUS
approved