0

The digits from 0-9 can form other digits by adding segments (as in an electronic display (7 segment display)). So:

From 0 you can form: 8;
From 1 you can form: 0,3,4,7,8,9;
From 2 you can form: 8;
From 3 you can form: 8,9;
From 4 you can form: 8,9;
From 5 you can form: 6,8,9;
From 6 you can form: 8;
From 7 you can form: 0,3,8,9;
From 8 you can form: -;
From 9 you can form: 8;

I have a number N of at least 2 digits and I need the number of numbers that can be formed with digits of N that are bigger than N.

Let's say N is 823. I take it's digits (8,2,3) and, with 8 i get nothing, with 2 i get 8 and with 3 i get 8,9. With this, i need the number of all the numbers i can get by combining these that are bigger than N. So 828, 829, 883, 888, 889. (5 numbers). Is there a formula for such a thing? Thank you in advance!

Joffan
  • 39,627

0 Answers0