Number of ways that n can be expressed as a sum of consecutive integers from 0 up to at most n, where any of the terms in the sum can be negated, and the partial sum from 0 is always between 0 and n inclusive.

A364721

Number of ways that n can be expressed as a sum of consecutive integers from 0 up to at most n, where any of the terms in the sum can be negated, and the partial sum from 0 is always between 0 and n inclusive.

Terms

    a(0) =1a(1) =1a(2) =0a(3) =1a(4) =1a(5) =0a(6) =1a(7) =1a(8) =1a(9) =2a(10) =2a(11) =2a(12) =2a(13) =3a(14) =2a(15) =4a(16) =5a(17) =4a(18) =6a(19) =9a(20) =10a(21) =13a(22) =15a(23) =16a(24) =20a(25) =25a(26) =28a(27) =36a(28) =46a(29) =52

External references