3. Person A writes down the positive integers $1, 2, \cdots$, 2009 on the blackboard, then turns away from the blackboard, and asks Person B to erase some of these numbers and then add the remainder of the sum of the erased numbers when divided by 7. After several such operations, only two numbers remain on the blackboard, one of which is a single-digit number. A asks B: “What is the larger of the two remaining numbers?” B answers: “100.” Then the single-digit number is