Four in a Row
input file: four.in
Given a positive integer, tell whether it is equal to the sum of four
consecutive integers.
Input
A positive integer, each case will be on a separate line. A zero (0) denotes
the end of input.
Output
The phrase "<number> is not the sum of four consecutive integers," or
the phrase "<number> is the sum of four consecutive integers," where
<number> is the number in question. For example, 2 is the sum of four
consecutive integers, 2 = -1 + 0 + 1 + 2, whereas 41 is not.
Sample Input
2
5
41
82
0
Sample Output
2 is the sum of four consecutive integers.
5 is not the sum of four consecutive integers.
41 is not the sum of four consecutive integers.
82 is the sum of four consecutive integers.