Let be a subset of . For any put .
Define the upper asymptotic density of by
is also known simply as the upper density of . Similarly, we define , the lower asymptotic density of , by