Joe is either a knight, a liar, or a knave. His favorite number is an integer between 1 and 1000. He makes the following statements about his favorite number:

1. It is odd.

2. It is divisible by 7.

3. It is divisible by 23.

4. It is not divisible by 19.

5. It has an even number of divisors.

6. It ends in 9.

What type is Joe, and what is his favorite number?