A number is divisible by 17 if subtracting the product of the last digit with 5 from the number formed by remaining digits is a factor of 17.