I want to write a program that would generate telephone numbers with the specifics below:
Telephone numbers are composed of 10 digits.
In the same number:
1- Any digit could be used 3 times, except 0 which could be used 2 times, but not at the right of the number.
2- If a digit is used 3 times, then any other digit could be used 2 times, no more.
3- If a digit is used 3 times, and another one is used 2 times, then any other different digit must be used one time, no more.
4- Local, regional, or international codes are not taken in consideration.
Question 1:
Calculate the total number of all combinations.
Question 2: (related to programming)
Could the program generate such a bulk of numbers ?
Thank you.
Telephone numbers are composed of 10 digits.
In the same number:
1- Any digit could be used 3 times, except 0 which could be used 2 times, but not at the right of the number.
2- If a digit is used 3 times, then any other digit could be used 2 times, no more.
3- If a digit is used 3 times, and another one is used 2 times, then any other different digit must be used one time, no more.
4- Local, regional, or international codes are not taken in consideration.
Question 1:
Calculate the total number of all combinations.
Question 2: (related to programming)
Could the program generate such a bulk of numbers ?
Thank you.