The given number is 865917
Sum of its digits = (8 + 6 + 5 + 9 + 1 + 7) = 36. which is divisible by 9
865917 is divisible by 9