For each date of year 1998, we calculate daymonth −year and determine the greatest power of 3 that divides it. For example, for April 21 we get 214−1998=192483=33⋅7129, which is divisible by 33 and not by 34 . Find all dates for which this power of 3 is the greatest. number theorymaxpower of 3