# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a267702 Showing 1-1 of 1 %I A267702 #40 Feb 04 2016 20:58:19 %S A267702 9,35,54,65,72,91,126,133,152,189,217,224,243,250,280,341,344,370,432, %T A267702 468,513,539,576,637,686,728,730,737,756,793,854,945,1001,1027,1064, %U A267702 1072,1125,1216,1241,1332,1339,1358,1395,1456,1458,1512,1547,1674,1729,1736,1755,1843,1853 %N A267702 Numbers that are the sum of 3 nonzero squares (A000408) and the sum of 2 positive cubes (A003325). %C A267702 Intersection of A000408 and A003325. %C A267702 Sequence focuses on the solutions of equation x^3 + y^3 = a^2 + b^2 + c^2 where x, y, a, b, c > 0. %H A267702 Robert Israel, Table of n, a(n) for n = 1..3649 %e A267702 9 is a term because 9 = 1^3 + 2^3 = 1^2 + 2^2 + 2^2. %e A267702 35 is a term because 35 = 2^3 + 3^3 = 1^2 + 3^2 + 5^2. %e A267702 54 is a term because 54 = 3^3 + 3^3 = 3^2 + 3^2 + 6^2. %p A267702 N:= 1000: # to get all terms <= N %p A267702 S3:= {seq(seq(seq(a^2+b^2+c^2, c = b .. floor(sqrt(N-a^2-b^2))), %p A267702 b=a .. floor(sqrt((N-a^2)/2))), a = 1 .. floor(sqrt(N/3)))}: %p A267702 C2:= {seq(seq(a^3+b^3, b = a .. floor((N-a^3)^(1/3))),a = 1 .. floor((N/2)^(1/3)))}: %p A267702 sort(convert(S3 intersect C2, list)); # _Robert Israel_, Jan 25 2016 %o A267702 (PARI) isA000408(n) = {my(a, b); a=1; while(a^2+1min(v[1], v[2])>0, thue(T, n))>0; %o A267702 for(n=3, 1e4, if(isA000408(n) && isA003325(n), print1(n, ", "))); %Y A267702 Cf. A000408, A003325. %K A267702 nonn %O A267702 1,1 %A A267702 _Altug Alkan_, Jan 23 2016 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE