OFFSET
1,4
COMMENTS
The summands of each side are in increasing order and the minimum of all summands is on the left side.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..940
FORMULA
a(n) ~ 3^(n+1) / (4*sqrt(Pi)*n^(3/2)). - Vaclav Kotesovec, Sep 11 2014
EXAMPLE
a(3) = 1, as the only equation we can make by summing numbers from the set {1, 2, 3} is 1+2=3. a(4) = 3, as we can make three equations: 1+2=3, 1+3=4, 1+4=2+3.
MAPLE
b:= proc(n, i) option remember; local m; m:= i*(i+1)/2;
if n>m then 0
elif n=m then 1
else b(n, i-1) +b(abs(n-i), i-1) +b(n+i, i-1)
fi
end:
a:= proc(n) option remember;
`if`(n>2, b(n, n-1)+ a(n-1), 0)
end:
seq(a(n), n=1..40); # Alois P. Heinz, Aug 31 2009, revised Sep 16 2011
MATHEMATICA
Table[(Length[ Select[Range[0, 3^n - 1], Apply[Plus, Pick[Range[n], PadLeft[IntegerDigits[ #, 3], n], 1]] == Apply[Plus, Pick[Range[n], PadLeft[IntegerDigits[ #, 3], n], 2]] &]] - 1)/ 2, {n, 14}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Tanya Khovanova, Jun 22 2009
EXTENSIONS
More terms from Alois P. Heinz, Aug 31 2009
STATUS
approved