OFFSET
1,2
COMMENTS
LINKS
Donghwi Park, source code for a(5)
EXAMPLE
a(1)..a(4) are the same as in A064626.
PROG
(Python)
def play(ps, n, r, i, j):
if j>=n:
ps.add(tuple(sorted(r)))
else:
(ni, nj) = (i, j+1) if j<(n-1) else (i+1, i+2)
s=list(r)
s[i]=r[i]+n; play(ps, n, s, ni, nj)
s[i]=r[i]+1; s[j]=r[j]+1; play(ps, n, s, ni, nj)
s[i]=r[i] ; s[j]=r[j]+n; play(ps, n, s, ni, nj)
def A317723(n):
ps=set()
play(ps, n, [0]*n, 0, 1)
return len(ps)
# Bert Dobbelaere, Oct 07 2018
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Donghwi Park, Aug 05 2018
EXTENSIONS
a(6)-a(8) from Bert Dobbelaere, Oct 07 2018
STATUS
approved