OFFSET
1,1
COMMENTS
If k is allowed to be equal to half of the number of divisors of m, then the perfect numbers (A000396) will be terms.
a(17) > 10^13. 3021194449732665786499072 is also a term. - Giovanni Resta, May 09 2020
EXAMPLE
36 is a term since its divisors are {1, 2, 3, 4, 6, 9, 12, 18, 36} and the sum of the first 3 and last 3 divisors is (1 + 2 + 3) + (12 + 18 + 36) = 72 = 2 * 36.
MATHEMATICA
seqQ[n_] := Module[{d = Divisors[n]}, nd = Length[d]; nd2 = Ceiling[nd/2] - 1; s = Accumulate[d[[1 ;; nd2]] + n/d[[1 ;; nd2]]]; MemberQ[s, 2*n]]; Select[Range[10^6], seqQ]
PROG
(Python)
from itertools import count, islice, accumulate
from sympy import divisors
def A334409_gen(startvalue=1): # generator of terms >= startvalue
for n in count(max(startvalue, 1)):
ds = divisors(n)
if any(s==2*n for s in accumulate(ds[i]+ds[-1-i] for i in range((len(ds)-1)//2))):
yield n
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Amiram Eldar, Apr 27 2020
EXTENSIONS
a(8)-a(16) from Giovanni Resta, May 06 2020
STATUS
approved
