cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A336205 Numbers k that can be expressed as x^3 + y^3 + z^3 with x^2 + y^2 + z^2 <= k where x, y, z are integers.

This page as a plain text file.
%I A336205 #65 Aug 11 2023 13:47:36
%S A336205 0,1,2,3,6,7,8,9,10,15,16,17,18,19,20,24,25,26,27,28,29,34,35,36,37,
%T A336205 38,43,45,46,48,53,54,55,56,57,60,61,62,63,64,65,66,69,71,72,73,80,81,
%U A336205 83,88,90,91,92,97,98,99,100,101,106,109,116,117,118,119,120,123,124,125,126,127,128,129,132
%N A336205 Numbers k that can be expressed as x^3 + y^3 + z^3 with x^2 + y^2 + z^2 <= k where x, y, z are integers.
%C A336205 See A336240 for border case x^2 + y^2 + z^2 = x^3 + y^3 + z^3.
%C A336205 What is the natural density of this sequence?
%C A336205 There are infinitely many infinite parametric families of solutions which have negative values in (x,y,z). For example, 8*(3*a-1)^2*m^6 + 12*(3*a-1)*(a-1)*m^4 - 6*(2*a-1)*m^2 + 2*a^3 + 1 are terms for all a >= 0, m >= 0. (x = 1 - (6*a-2)*m^2, y = a - m*(1-(6*a-2)*m^2), z = a + m*(1-(6*a-2)*m^2)). - _Altug Alkan_, Jul 17 2020
%C A336205 By definition, corresponding (x,y,z) variables are produced by equation x^3 + y^3 + z^3 = x^2 + y^2 + z^2 + t with t >= 0. That is, x^2*(x-1) + y^2*(y-1) + z^2*(z-1) >= 0. Conjecture: Every even integer can be represented as x^2*(x-1) + y^2*(y-1) + z^2*(z-1) where x, y, z are integers. - _Altug Alkan_, Jul 19 2020
%H A336205 Robert Israel, <a href="/A336205/b336205.txt">Table of n, a(n) for n = 1..8000</a>
%H A336205 Rémy Sigrist, <a href="/A336205/a336205.txt">C program for A336205</a>
%e A336205 11 is not a term because there is no (x,y,z) with x^2 + y^2 + z^2 <= 11 when x^3 + y^3 + z^3 = 11.
%e A336205 18 is a term because (-1)^3 + (-2)^3 + 3^3 = 18 and (-1)^2 + (-2)^2 + 3^2 <= 18.
%e A336205 61 is a term because (-4)^3 + 0^3 + 5^3 = 61 and (-4)^2 + 0^2 + 5^2 <= 61.
%e A336205 354 is a term because (-11)^3 + (-8)^3 + 13^3 = (-11)^2 + (-8)^2 + 13^2 = 354.
%p A336205 filter:= proc(n) local x,y,z,e1,e2;
%p A336205   for x from 0 while 3*x^2 <= n do
%p A336205     for y from 0 while x^2 + 2*y^2 <= n do
%p A336205       for e1 in [-1,1] do for e2 in [-1,1] do
%p A336205         z:= surd(n + e1*x^3 + e2*y^3,3);
%p A336205         if z::integer and x^2 + y^2 + z^2 <= n then return true fi;
%p A336205   od od od od;
%p A336205   false
%p A336205 end proc:
%p A336205 select(filter, [$0..200]); # _Robert Israel_, Jul 12 2020
%t A336205 filter[n_] := Module[{x, y, z, e1, e2},
%t A336205   For[x = 0, 3*x^2 <= n, x++,
%t A336205     For[y = 0, x^2 + 2*y^2 <= n, y++,
%t A336205       For[e1 = -1, e1 <= 1, e1 += 2, For[e2 = -1, e2 <= 1, e2 += 2,
%t A336205         z = (n + e1*x^3 + e2*y^3)^(1/3);
%t A336205         If[IntegerQ[z] && x^2 + y^2 + z^2 <= n, Return[True]]
%t A336205   ]]]]; False];
%t A336205 Select[Range[0, 200], filter] (* _Jean-François Alcover_, Aug 11 2023, after _Robert Israel_ *)
%o A336205 (C) See Links section.
%Y A336205 Cf. A004825 (subsequence), A060464 (supersequence), A336240.
%K A336205 nonn,easy
%O A336205 1,3
%A A336205 _Altug Alkan_, Jul 12 2020