Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #5 Feb 04 2024 18:31:38
%S 1,-1,-1,-1,-1,-1,6,16,25,35,-1,56,-1,-1,96,-1,-1,145,-1,-1,-1,225,-1,
%T -1,-1,-1,348,-1,-1,-1,-1,496,-1,-1,-1,-1,-1,707,-1,-1,-1,-1,-1,-1,-1,
%U 1045,-1,-1,-1,-1,-1,-1,-1,1447,-1
%N a(n) is the least positive integer that can be expressed as +- 1 +- 2 +- 3 +- ... +- n in exactly n ways, or -1 if no such integer exists.
%e a(7) = 6: 6 = + 1 + 2 + 3 - 4 + 5 + 6 - 7
%e = - 1 + 2 - 3 + 4 + 5 + 6 - 7
%e = + 1 + 2 + 3 + 4 - 5 - 6 + 7
%e = - 1 + 2 + 3 - 4 + 5 - 6 + 7
%e = + 1 - 2 - 3 + 4 + 5 - 6 + 7
%e = + 1 - 2 + 3 - 4 - 5 + 6 + 7
%e = - 1 - 2 - 3 + 4 - 5 + 6 + 7.
%Y Cf. A038547, A063890.
%K sign
%O 1,7
%A _Ilya Gutkovskiy_, Feb 04 2024