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!)
A346137 Numbers k such that k^3 = x^3 + y^3 + z^3, x > y > z >= 0, has at least 2 distinct solutions. 1

%I #63 Oct 05 2021 22:46:40

%S 18,36,41,46,54,58,60,72,75,76,81,82,84,87,88,90,92,96,100,108,114,

%T 116,120,123,126,132,134,138,140,142,144,145,150,152,156,159,160,162,

%U 164,168,170,171,174,176,178,180,184,185,186,189,190,192,198,200,201,202,203

%N Numbers k such that k^3 = x^3 + y^3 + z^3, x > y > z >= 0, has at least 2 distinct solutions.

%C This sequence is based on a generalization of Fermat's last theorem with n=3, in which three terms are added. Fermat's Theorem states that there are no solution with only two terms, this sequence shows there are many integers for which there are multiple solutions if three terms are allowed. The sequence is also related to the Taxicab numbers.

%e 41 is in the sequence because 41^3 = 33^3 + 32^3 + 6^3 = 40^3 + 17^3 + 2^3.

%t q[k_] := Count[IntegerPartitions[k^3, {3}, Range[0, k-1]^3], _?(UnsameQ @@ # &)] > 1; Select[Range[200], q] (* _Amiram Eldar_, Sep 03 2021 *)

%o (Python)

%o from itertools import combinations

%o from collections import Counter

%o from sympy import integer_nthroot

%o def icuberoot(n): return integer_nthroot(n, 3)[0]

%o def aupto(kmax):

%o cubes = [i**3 for i in range(kmax+1)]

%o cands, cubesset = (sum(c) for c in combinations(cubes, 3)), set(cubes)

%o c = Counter(s for s in cands if s in cubesset)

%o return sorted(icuberoot(s) for s in c if c[s] >= 2)

%o print(aupto(203)) # _Michael S. Branicky_, Sep 04 2021

%Y Subsequence of A023042.

%Y Cf. A001235, A346071.

%K nonn

%O 1,1

%A _Sebastian Magee_, Jul 30 2021

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 August 23 20:14 EDT 2024. Contains 375396 sequences. (Running on oeis4.)