projecteuler.net

Investigating numbers with few repeated digits

Published on Saturday, 15th December 2007, 09:00 am; Solved by 3167;
Difficulty rating: 55%

Problem 172

How many 18-digit numbers n (without leading zeros) are there such that no digit occurs more than three times in n?