OFFSET
1,4
COMMENTS
It seems that lim_{n -> oo} M(n)/n = 3.4... where M(n) = Max(a(k), 1<=k<=n). Does a(n)=1 for a finite number of values? The first ones are 2, 3, 9, 177, 3891, ...
LINKS
John Tyler Rascoe, Table of n, a(n) for n = 1..10000
PROG
(Python)
def A078589_list(max_n):
A = [0, 1]
for n in range(3, max_n + 1):
A.append(abs(A[-1] - A[-2] - n + 1))
return(A) # John Tyler Rascoe, Oct 25 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Dec 06 2002
STATUS
approved