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”).

A379265
a(n) is the number of coincidences of the first n terms of this sequence and A379266, i.e., the number of equalities a(k) = A379266(k) for 0 <= k < n.
0
0, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 10, 11, 12, 13, 13, 14, 14, 14, 14, 14, 15
OFFSET
0,3
COMMENTS
a(n) appears to grow roughly like sqrt(n).
LINKS
Pontus von Brömssen, Table of n, a(n) for n = 0..9999
FORMULA
For n >= 1, a(n) = a(n-1)+1 if a(n-1) = A379266(n-1), otherwise a(n) = a(n-1).
PROG
(Python)
def A379265_list(nterms):
A = []
A379266 = []
for n in range(nterms):
if n != 0:
a += (a==A379266[-1])
else:
a = 0
b = sum(x==y for x, y in zip(A, reversed(A379266)))
A.append(a)
A379266.append(b)
return A
CROSSREFS
KEYWORD
nonn,new
AUTHOR
STATUS
approved