hey adarsh m afraid u r wrong.... actually the question seems more of PC and less of probability....newayz here's the solution
For the date to be palindrome and belonging to year s [2001, 2100]...only possible thing is , that the month has to be feburary.... i.e. in the following format
_ _ 0 2 | 2 0 _ _
a b c d
now a can be either 0 or 1 or 2 and b can be frm [1,8] for a non-leap year...and [1,9] for a leap year...
as the date has to be palindrome d aslo has to be in either 0, 1 or 2
case 1: when year is a leap year...
then d can be either 0 or 2....
if d=2,
2 _ 0 2 | 2 0 _ 2
b c
then for year to be leap c (and also b) belongs {1,3,5,7,9} that is 5 cases
if d=0
0 _ 0 2 | 2 0 _ 0
b c
then for year to be leap c (and also b) belongs {2,4,6,8} that is 4 cases
case 2: when year is not a leap year....
if d=2,
2 _ 0 2 | 2 0 _ 2
b c
now b (and c) can be any one of {0,2,4,6,8}...i.e. 5 cases
if d=1,
1 _ 0 2 | 2 0 _ 1
b c
then b (and c) can be any of the [0,8], i.e. 9 cases
if d=0,
0 _ 0 2 | 2 0 _ 0
b c
then b (and c) can be any of the [1,8], i.e. 8 cases
So, the total no of favourable cases = sum of all this = 31
and total no of days frm 1st jan 2001 to 31st december 2100 = x (calculate it plsss
) so the probabilty = 31/x
phew the question seems bit lengthy
... but i cant think of anything else... any short approach is most welcomed!!!