2. for periodicity a must be rational (including integers as well) as period = LCM of period of sinx and period of cosax
= LCM(2pi, 2pi/a) which exists only if a is rational
1. If x=rational, then f(x) = 1
If x=irrational, tehn f(x) = 0
so range of f(x) = {0,1}