OFFSET
1,2
COMMENTS
a(n) <= a(n-1) + a(n-2) + a(n-3) - 2. - Charlie Neder, Feb 09 2019
LINKS
Charlie Neder, Table of n, a(n) for n = 1..70
EXAMPLE
After 1,2,3,4,5,6: 7 cannot be the next term because 1+3+7 = 2+4+5.
PROG
(Python)
def u(series):
for i in range(0, len(series)):
for j in range(i+1, len(series)):
for k in range(j+1, len(series)):
for l in range(0, len(series)):
for m in range(l+1, len(series)):
for n in range(m+1, len(series)):
if len(set([i, j, k, l, m, n]))==6:
if series[i]+series[j]+series[k]==series[l]+series[m]+series[n]:
return False
return True
def a(series, n):
a = []
for i in range(0, len(series)):
a.append(series[i])
a.append(n)
return a
series = [1, 2, 3, 4, 5, 6]
for i in range(7, 1000):
print(i)
nseries = a(series, i)
if u(nseries):
series.append(i)
print(series)
print(series)
CROSSREFS
KEYWORD
nonn
AUTHOR
Ben Paul Thurston, Aug 06 2018
EXTENSIONS
a(24)-a(45) from Charlie Neder, Feb 09 2019
STATUS
approved