find harshad sequence recursively