Smallest nonnegative integer k such that n = +-1+-2+-...+-k for some choice of +'s and -'s.

A140358

Smallest nonnegative integer k such that n = +-1+-2+-...+-k for some choice of +'s and -'s.

Terms

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

External references