Discussion Forum

One counting problem

 
 
Picture of Henry  Wang
One counting problem
by Henry Wang - Tuesday, 5 August 2025, 5:20 PM
 

How many six digit numbers are there that have exactly one pair of digits that differ by 5? Can anyone give me a hand? Thanks.

 
Picture of ZIML Admin
Re: One counting problem
by ZIML Admin - Wednesday, 6 August 2025, 3:03 AM
 

There are $5$ possible pairs: $(0,5)$, $(1,6)$, $(2,7)$, $(3,8)$, and $(4,9)$.  Only one of these pairs have both digits appear, non-repeating.  For each of the other pairs, only one digit can appear, repeating allowed. Also consider $0$ cannot be the first digit.