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.

Showing 1-3 of 3 results.

A293646 Sum of two (possibly negative) coprime cubes, but not the sum of 2 non-coprime cubes.

Original entry on oeis.org

1, 2, 7, 9, 19, 26, 28, 35, 37, 61, 63, 65, 91, 98, 117, 124, 126, 127, 133, 169, 215, 217, 218, 271, 279, 316, 331, 335, 341, 342, 344, 351, 370, 386, 387, 397, 407, 468, 469, 485, 511, 539, 547, 559, 602, 604, 631, 637, 657, 665, 721, 730, 737, 793, 817, 819
Offset: 1

Views

Author

Rosalie Fay, Oct 16 2017

Keywords

Comments

Not every term is cubefree; some are sb^3 where s is in A159843 and b > 1.

Examples

			344 = 7^3 + 1^3 and 344 is not also the sum of cubes of 2 non-coprime integers, so 344 is in the sequence.
152 = 6^3 + (-4)^3 and 6 and -4 are not coprime, so 152 is not in the sequence.
		

Crossrefs

Cf. A020895 (cubefree); A293645 (allows non-coprime); A293648, A293651

Programs

  • Mathematica
    s[n_] := CoprimeQ @@@ ({x, y} /. Solve[n == x^3 + y^3, {x, y}, Integers]);
    Reap[For[k = 1, k < 2000, k++, If[Union[s[k]] == {True}, Print[k]; Sow[k]]]][[2, 1]] (* Jean-François Alcover, Feb 02 2023 *)

A293647 Positive numbers that are the sum of two (possibly negative) cubes in at least 2 ways (primitive solutions).

Original entry on oeis.org

91, 152, 189, 217, 513, 721, 728, 999, 1027, 1729, 3087, 3367, 4104, 4706, 4921, 4977, 5256, 5859, 6832, 7657, 8587, 8911, 9919, 10621, 10712, 12663, 12691, 12824, 14911, 15093, 15561, 16120, 16263, 20683, 21014, 23058, 23877, 25669, 27937, 28063, 31519, 32984
Offset: 1

Views

Author

Rosalie Fay, Oct 16 2017

Keywords

Comments

Primitive means that the 4 summands are coprime.
Not every term is the sum of two coprime cubes.
a(1) = A047696(2).

Examples

			189 = 4^3 + 5^3 = 6^3 + (-3)^3 and 4, 5, 6, -3 are coprime, so 189 is in the sequence.
35208 = 34^3 + (-16)^3 = 33^3 + (-9)^3 and 34, -16, 33, -9 are coprime, so 35208 is in the sequence.
		

Crossrefs

Cf. A051347 (all solutions); A018850 (positive cubes); A293648 (only coprime); A293645, A293650

Programs

  • Maple
    g:= proc(s,n) local x;
      x:= s/2 + sqrt(12*n/s-3*s^2)/6;
      if not x::integer then return NULL fi;
      [x,s - x];
    end proc:
    filter:= proc(n)
      local pairs, i,j;
      pairs:= map(g, numtheory:-divisors(n),n);
      for i from 2 to nops(pairs) do
        for j from 1 to i-1 do
          if igcd(op(pairs[i]),op(pairs[j]))=1 then return true fi
      od od;
      false
    end proc:
    select(filter, [seq(seq(9*i+j,j=[1,2,7,8,9]),i=0..4000)]); # Robert Israel, Oct 22 2017
  • Mathematica
    g[s_, n_] := Module[{x}, x = s/2 + Sqrt[12*n/s - 3*s^2]/6;   If[!IntegerQ[x], Return[Nothing]]; {x, s - x}];
    filter[n_] := Module[{pairs, i, j}, pairs = g[#, n]& /@ Divisors[n]; For[i = 2, i <= Length[pairs], i++,For[j = 1, j <= i - 1, j++, If[GCD @@ Join[pairs[[i]], pairs[[j]]] == 1, Return[True]]]]; False];
    Select[Flatten[Table[Table[9*i + j, {j, {1, 2, 7, 8, 9}}], {i, 0, 4000}]], filter] (* Jean-François Alcover, May 28 2023, after Robert Israel *)

A293650 Sum of two (possibly negative) cubes in at least 3 ways (primitive solutions).

Original entry on oeis.org

728, 3367, 4104, 5859, 46683, 65728, 68913, 101528, 124488, 134379, 152551, 155736, 165464, 168112, 184464, 195841, 205352, 289224, 333944, 342657, 402597, 439101, 622232, 625177, 684019, 754299, 757701, 842751, 845208, 1009736, 1016496, 1062936, 1073375
Offset: 1

Views

Author

Rosalie Fay, Oct 16 2017

Keywords

Comments

Primitive means that the 6 summands are coprime. Not every term is the sum of two coprime cubes. a(1) = A047696(3).

Examples

			4104 = 18^3 - 12^3 = 16^3 + 2^3 = 15^3 + 9^3, and 18, -12, 16, 2, 15, 9 are coprime, so 4104 is in the sequence.
		

Crossrefs

Cf. A051383 (all solutions); A003825 (positive cubes); A293651 (only coprime); A293645, A293647
Showing 1-3 of 3 results.