A345512 Numbers that are the sum of six cubes in three or more ways.
221, 254, 369, 411, 443, 469, 495, 502, 576, 595, 600, 626, 648, 658, 684, 704, 711, 720, 739, 746, 753, 760, 765, 767, 772, 774, 779, 786, 793, 811, 818, 828, 830, 835, 837, 844, 854, 856, 863, 866, 873, 874, 880, 884, 886, 891, 892, 893, 899, 905, 910, 919
Offset: 1
Keywords
Examples
254 is a term because 254 = 1^3 + 1^3 + 1^3 + 1^3 + 4^3 + 4^3 = 1^3 + 1^3 + 1^3 + 2^3 + 3^3 + 5^3 = 2^3 + 3^3 + 3^3 + 3^3 + 3^3 + 3^3.
Links
- Sean A. Irvine, Table of n, a(n) for n = 1..10000
Programs
-
Python
from itertools import combinations_with_replacement as cwr from collections import defaultdict keep = defaultdict(lambda: 0) power_terms = [x**3 for x in range(1, 1000)] for pos in cwr(power_terms, 6): tot = sum(pos) keep[tot] += 1 rets = sorted([k for k, v in keep.items() if v >= 3]) for x in range(len(rets)): print(rets[x])