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!)
A345511 Numbers that are the sum of six cubes in two or more ways. 7

%I

%S 158,165,184,221,228,235,247,254,256,261,268,273,275,280,282,284,287,

%T 291,294,306,310,313,317,324,331,332,343,345,347,350,352,362,369,371,

%U 373,376,378,380,385,387,388,392,395,399,404,406,408,411,418,425,430,432

%N Numbers that are the sum of six cubes in two or more ways.

%H Sean A. Irvine, <a href="/A345511/b345511.txt">Table of n, a(n) for n = 1..10000</a>

%e 165 is a term because 165 = 1^3 + 1^3 + 2^3 + 3^3 + 3^3 + 3^3 = 2^3 + 2^3 + 2^3 + 2^3 + 2^3 + 4^3.

%o (Python)

%o from itertools import combinations_with_replacement as cwr

%o from collections import defaultdict

%o keep = defaultdict(lambda: 0)

%o power_terms = [x**3 for x in range(1, 1000)]

%o for pos in cwr(power_terms, 6):

%o tot = sum(pos)

%o keep[tot] += 1

%o rets = sorted([k for k, v in keep.items() if v >= 2])

%o for x in range(len(rets)):

%o print(rets[x])

%Y Cf. A003329, A048930, A343702, A344806, A345512, A345520, A345559.

%K nonn

%O 1,1

%A _David Consiglio, Jr._, Jun 20 2021

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 27 15:45 EST 2022. Contains 350607 sequences. (Running on oeis4.)