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.

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

This page as a plain text file.
%I A345511 #12 May 10 2024 02:27:48
%S A345511 158,165,184,221,228,235,247,254,256,261,268,273,275,280,282,284,287,
%T A345511 291,294,306,310,313,317,324,331,332,343,345,347,350,352,362,369,371,
%U A345511 373,376,378,380,385,387,388,392,395,399,404,406,408,411,418,425,430,432
%N A345511 Numbers that are the sum of six cubes in two or more ways.
%H A345511 Sean A. Irvine, <a href="/A345511/b345511.txt">Table of n, a(n) for n = 1..10000</a>
%o A345511 (Python)
%o A345511 from itertools import combinations_with_replacement as cwr
%o A345511 from collections import defaultdict
%o A345511 keep = defaultdict(lambda: 0)
%o A345511 power_terms = [x**3 for x in range(1, 1000)]
%o A345511 for pos in cwr(power_terms, 6):
%o A345511     tot = sum(pos)
%o A345511     keep[tot] += 1
%o A345511     rets = sorted([k for k, v in keep.items() if v >= 2])
%o A345511     for x in range(len(rets)):
%o A345511         print(rets[x])
%Y A345511 Cf. A003329, A048930, A343702, A344806, A345512, A345520, A345559.
%K A345511 nonn
%O A345511 1,1
%A A345511 _David Consiglio, Jr._, Jun 20 2021