find the kth number such that the only prime factors are 3, 5 and 7