. Start from the last digit of the number.
. Get a double of every alternate digit, if the double value is greater than 9 then take its remainder and add it to 1.
. Create a sum of this doubled values, remainders and each digit then divide it by 10.
. If it is divisible then it is valid.