login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A334964 Numbers that are the sum of three coprime positive cubes 1

%I #20 May 18 2020 11:34:29

%S 3,10,17,29,36,43,55,62,66,73,92,99,118,127,129,134,141,153,155,160,

%T 179,190,197,216,218,225,244,251,253,258,277,281,307,314,342,345,349,

%U 352,359,368,371,378,397,405,408,415,433,434,466,469,471,476,495,514,521,532,540,547,557,560,566,567

%N Numbers that are the sum of three coprime positive cubes

%C The greatest common divisor of the three cubes must be 1, but they need not be pairwise coprime.

%H Robert Israel, <a href="/A334964/b334964.txt">Table of n, a(n) for n = 1..10000</a>

%H <a href="/index/Su#ssq">Index entries for sequences related to sums of cubes</a>

%e a(3)=17 is in the sequence because 17 = 1^3 + 2^3 + 2^3 with gcd(1,2,2)=1.

%p N:= 1000: # for all terms <= N

%p S:= {seq(seq(seq(x^3+y^3+z^3, z=select(t -> igcd(x,y,t)=1, [$y..floor((N-x^3-y^3)^(1/3))])), y=x..floor(((N-x^3)/2)^(1/3))), x=1..floor((N/3)^(1/3)))}:

%p sort(convert(S, list));

%o (PARI) list(lim)=my(v=List(),s,g,x3); lim\=1; if(lim<3, return([])); for(x=1,sqrtnint(lim\3,3), x3=x^3; for(y=x,sqrtnint((lim-x3)\2,3), s=x3+y^3; g=gcd(x,y); if(g>1, for(z=y,sqrtnint(lim-s,3), if(gcd(g,z)==1, listput(v,s+z^3))), for(z=y,sqrtnint(lim-s,3), listput(v,s+z^3))))); Set(v) \\ _Charles R Greathouse IV_, May 18 2020

%Y Cf. A202679.

%K nonn

%O 1,1

%A _Robert Israel_, May 17 2020

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 15:17 EDT 2024. Contains 371916 sequences. (Running on oeis4.)