login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A359873
Minimum number of consecutive positive integers to guarantee n abundant or perfect numbers.
0
6, 12, 18, 24, 30, 36, 38, 42, 48, 52, 56, 60, 66, 72, 78
OFFSET
1,1
COMMENTS
It is rather easy to show that a(n) <= 6n. Marc Deléglise (1998)'s bounds on the density of abundant numbers gives that a(n)/n approaches a value between 4.032 and 4.043.
LINKS
Marc Deléglise, Bounds for the density of abundant integers, Experimental Mathematics, Vol. 7, No. 2 (1998), pp. 137-143; alternative link.
EXAMPLE
For n=8, there must be 7 multiples of 6 within the 42 numbers, which are all abundant/perfect. There must also be 2 multiples of 20 that are abundant/perfect. Note that between the multiples of 6 and the multiples of 20, there can be at most one repetition, thus giving 8 abundant numbers. 41 fails with 115, 116, ..., 155.
PROG
(Python)
def f(n):
ans = 0
for i in range(1, n):
if n % i ==0:
ans += i
return ans
l=[]
for i in range(1, 100000):
if f(i) - i > -1:
l.append(i)
def listing(k, f):
for i in range(len(l)-k):
if l[i+k]-l[i] > f:
return (l[i], l[i+k])
def a(n):
a = 0
while not listing(n, a) == None:
a += 1
return a
CROSSREFS
Cf. A023196 (abundant or perfect numbers).
Sequence in context: A315768 A315769 A315770 * A315771 A315772 A121827
KEYWORD
nonn,more
AUTHOR
Lincoln Liu, May 20 2023
STATUS
approved