Added Code for Keith Numbers