Gaps and even sums
Three distinct integers are chosen from 1 through 8. No two chosen integers are consecutive. How many choices have an even sum?
Hint
Write the chosen integers as a < b < c and examine a, b-1, c-2.
Show answer and methods 2 methods
Answer
10
Method 1 Remove mandatory gaps
The transformation (a,b,c) to (a,b-1,c-2) bijects gap-respecting choices with ordinary increasing triples from 1 through 6. Their sum is smaller by 3, so it must be odd. There are three odd and three even numbers available. An odd sum requires either three odds (1 choice) or one odd and two evens (3 times 3 choices), for a total of 10.
Method 2 Pair each choice with its reflection
First count all triples a<b<c with gaps of at least two. For a given middle b there are (b-2)(7-b) choices for its neighbours; for b=3,4,5,6 the counts are 4,6,6,4, totalling 20. Reflect each chosen number x to 9-x. The gaps are preserved, and a sum S becomes 27-S, which has the opposite parity. Reflection is its own inverse, so exactly half of the 20 triples have even sum: 10.