Distribution Of Integers With Prescribed Arithmetic Structure And Applications