to find grey code of a nubmer