OFFSET
1,2
COMMENTS
Column 4 of A200057.
LINKS
R. H. Hardin, Table of n, a(n) for n = 1..200
EXAMPLE
Some solutions for n=6:
.-2....2...-1...-3...-2....4....0...-1....0....2...-4....2...-1....0....0....1
..2...-3....4....1....2....0....4....3...-2....0....2....4....2....4....2....0
..1....2...-3....0...-1....3...-3...-1....4....2...-1....0...-3...-2...-2....2
..4...-1....0....4....0...-3....3....4...-4...-3....1....1....1....1....1...-4
.-3....1...-2...-3...-3....0...-3...-3....2....1...-2...-4....0...-2...-3....4
.-2...-1....2....1....4...-4...-1...-2....0...-2....4...-3....1...-1....2...-3
MAPLE
T:= proc(a, n, s)
option remember;
if n = 1 then
if s = a then 1
else 0
fi
else
add(procname(-j, n-1, a-s), j=a+1..4)
fi
end proc:
A:= proc(n) 2*add(T(a, n, 0), a=-4..4) end proc: A(1):= 1:
seq(A(n), n=1..30); # Robert Israel, Nov 19 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Nov 13 2011
STATUS
approved