OFFSET
1,1
LINKS
R. J. Mathar, Table of n, a(n) for n = 1..8000 (replacing an earlier b-file that missed terms).
MAPLE
A003381 := proc(nmax::integer)
local xyzmax, ins, x, x8, y, y8, z, z8 ;
xyzmax := ceil(root[8](nmax/3)) ;
a := {} ;
for x from 1 to xyzmax do
x8 := x^8 ;
if 3*x8 > nmax then
break;
end if;
for y from x do
y8 := y^8 ;
if x8+2*y8 > nmax then
break;
end if;
for z from y do
z8 := z^8 ;
if x8+y8+z8 > nmax then
break;
end if;
if x8+y8+z8 <= nmax then
a := a union {x8+y8+z8} ;
end if;
end do:
end do:
end do:
sort(convert(a, list)) ;
end proc:
nmax := 6755626171875 ;
L:= A003381(nmax) ;
LISTTOBFILE(L, "b003381.txt", 1) ; # R. J. Mathar, Aug 01 2020
MATHEMATICA
kmax = 4*10^12;
m = kmax^(1/8) // Ceiling;
Table[k = x^8 + y^8 + z^8; If[k <= kmax, k, Nothing], {x, 1, m}, {y, x, m}, {z, y, m}] // Flatten // Union (* Jean-François Alcover, May 02 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved