a(n) is the number of n-digit numbers whose difference between the largest and smallest digits is equal to 2.
A367243
a(n) is the number of n-digit numbers whose difference between the largest and smallest digits is equal to 2.
Terms
- a(0) =0a(1) =15a(2) =91a(3) =381a(4) =1375a(5) =4605a(6) =14791a(7) =46341a(8) =142975a(9) =436845a(10) =1326391a(11) =4010901a(12) =12096175a(13) =36415485a(14) =109500391a(15) =329009061a(16) =988042975a(17) =2966160525a(18) =8902544791a(19) =26715760821a(20) =80163535375a(21) =240523111965a(22) =721634347591
External references
- oeis: A367243