There are ten one-digit numbers divisible by 1 so a(1)=10. For 2-digit numbers, the ones digit must be such that the two digit number divisible by 2 which gives 45 numbers, that is, all even numbers from 10 to 98 to satisfy the requirement. So a(2)=45.