A345807 Numbers that are the sum of ten cubes in exactly five ways.
288, 349, 382, 384, 401, 403, 408, 410, 414, 415, 417, 421, 429, 443, 454, 455, 462, 475, 482, 487, 496, 501, 520, 543, 544, 545, 546, 548, 555, 556, 558, 565, 566, 570, 573, 574, 575, 576, 578, 580, 582, 586, 587, 591, 592, 593, 594, 600, 609, 610, 611, 617
Offset: 1
Keywords
Examples
349 is a term because 349 = 1^3 + 1^3 + 1^3 + 1^3 + 1^3 + 1^3 + 1^3 + 1^3 + 4^3 + 5^3 = 1^3 + 1^3 + 1^3 + 1^3 + 1^3 + 3^3 + 3^3 + 3^3 + 3^3 + 4^3 = 1^3 + 1^3 + 1^3 + 2^3 + 2^3 + 2^3 + 2^3 + 3^3 + 4^3 + 4^3 = 1^3 + 1^3 + 2^3 + 2^3 + 2^3 + 2^3 + 2^3 + 3^3 + 3^3 + 5^3 = 2^3 + 3^3 + 3^3 + 3^3 + 3^3 + 3^3 + 3^3 + 3^3 + 3^3 + 4^3.
Links
- Sean A. Irvine, Table of n, a(n) for n = 1..86
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, 10): tot = sum(pos) keep[tot] += 1 rets = sorted([k for k, v in keep.items() if v == 5]) for x in range(len(rets)): print(rets[x])
Comments