a(n) is the number of n-digit numbers whose difference between the largest and smallest digits is equal to 5.

A367246

a(n) is the number of n-digit numbers whose difference between the largest and smallest digits is equal to 5.

Terms

    a(0) =0a(1) =9a(2) =139a(3) =1419a(4) =12079a(5) =92859a(6) =669319a(7) =4617699a(8) =30878959a(9) =201792939a(10) =1295974999a(11) =8212422579a(12) =51499341439a(13) =320287850619

External references