a(n) = number of ways of placing '+' and '-' among the digits 123456789 so that the result of the expression is n, '-' before 1 IS allowed.

A066957

a(n) = number of ways of placing '+' and '-' among the digits 123456789 so that the result of the expression is n, '-' before 1 IS allowed.

Terms

    a(0) =22a(1) =43a(2) =18a(3) =41a(4) =18a(5) =40a(6) =24a(7) =39a(8) =18a(9) =46a(10) =17a(11) =38a(12) =27a(13) =38a(14) =24a(15) =43a(16) =18a(17) =39a(18) =23a(19) =37a(20) =23a(21) =43a(22) =25a(23) =36a(24) =32a(25) =36a(26) =25a(27) =44a(28) =25a(29) =35

External references