OFFSET
1,1
COMMENTS
Numbers k such that k*a*b = a^3 + b^3 has integer solutions with b > a >= 1.
Numbers of the form r*(s^3 + t^3) with r >= 1 and s > t >= 1, by a = r*s*t^2, b = r*s^2*t.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..22000
EXAMPLE
63 can be expressed as (14^3 + 28^3)/(14*28) so 63 is a term.
MATHEMATICA
n = 300; Union@
Sort@Flatten@
Table[r*(s^3 + t^3), {r, 1, n/9}, {s, 1,
CubeRoot[n/(2*r) - 1]}, {t, s + 1, CubeRoot[n/r - s^3]}]
PROG
(Python)
def aupto(limit):
c=[k**3 for k in range(1, limit) if k**3<=limit]
s=set()
for i in range(len(c)):
for j in range(i+1, len(c)):
t=(c[i]+c[j])
for r in range(1, limit//t+1) :
s.add(r*t)
return(sorted(s))
print(aupto(500))
(MATLAB)
function a = A359225( max_n )
OneToN = [1:max_n]; a = [];
for n = 1:max_n-1
A = (OneToN(1:n)'*ones(1, max_n-n)).^3 ...
+ (ones(n, 1)*OneToN(n+1:end)).^3;
a = unique([a reshape(A(:), 1, numel(A))]);
a = a(1:min(length(a), max_n));
end
A = a'*OneToN;
a = unique(A(:)); a = a(1:min(length(a), max_n))';
end
(PARI) isA359225 = A373973; \\ Antti Karttunen, Jun 24 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Zhining Yang, Dec 22 2022
STATUS
approved