OFFSET
1,2
COMMENTS
These numbers might be called "divisor sequence balancers" after Behera and Panda.
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
A. Behera and G. K. Panda, On the square roots of triangular numbers, The Fibonacci Quarterly, 37.2 (1999), 98-105.
EXAMPLE
r = 1:
d(1) + d(2) = d(4) = 3.
Thus the balancer r = 1 is a term. The balancing number k = 3.
r = 6:
d(1) + ... + d(9) = d(11) + ... + d(16) = 23.
Thus the balancer r = 6 is a term. The balancing number k = 10.
d(i) = A000005(i).
MATHEMATICA
With[{m = 720}, d = DivisorSigma[0, Range[m]]; s = Accumulate[d]; e = 2*s - d; i = Select[Range[2, m], MemberQ[s, e[[#]]] &]; Position[s, #][[1, 1]] & /@ e[[i]] - i] (* Amiram Eldar, Dec 01 2022 *)
PROG
(Python)
from sympy import divisor_count
from itertools import count, islice
def agen(): # generator of terms
d, s, sdict, i = [0, 1, 2], [0, 1, 3], dict(), 3
for k in count(2):
target = s[k-1] + s[k]
while s[-1] < target:
di = divisor_count(i); nexts = s[-1] + di; i += 1
d.append(di); s.append(nexts); sdict[nexts] = i-1
if target in sdict: yield sdict[target] - k
print(list(islice(agen(), 57))) # Michael S. Branicky, Dec 04 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Ctibor O. Zizka, Dec 01 2022
EXTENSIONS
More terms from Michael S. Branicky, Dec 01 2022
STATUS
approved