login
Numbers that are the sum of six fifth powers in four or more ways.
7

%I #7 Jul 31 2021 16:37:31

%S 12047994,20646208,21017489,21300963,21741819,24993485,27669050,

%T 28576064,30193856,30785920,35480456,35735194,36082750,37303264,

%U 39035975,46814942,47963291,50047062,50724345,52987561,53076800,53606848,54827300,55101101,56766906

%N Numbers that are the sum of six fifth powers in four or more ways.

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

%e 20646208 is a term because 20646208 = 2^5 + 12^5 + 12^5 + 16^5 + 18^5 + 28^5 = 3^5 + 4^5 + 4^5 + 8^5 + 10^5 + 29^5 = 6^5 + 6^5 + 12^5 + 14^5 + 24^5 + 26^5 = 7^5 + 7^5 + 8^5 + 16^5 + 25^5 + 25^5.

%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**5 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 >= 4])

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

%o print(rets[x])

%Y Cf. A344518, A345561, A345604, A345607, A345719, A346359.

%K nonn

%O 1,1

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