in reply to matching digits
This smacks of homework... Sara recently asked this exact question here.