MathDB
sum of 5-digit numbers with digits 1,2,5

Source: Chile Finals 2013 L2 p1

October 5, 2022
combinatoricsDigitsnumber theory

Problem Statement

Find the sum of all 55-digit positive integers that they have only the digits 1,21, 2, and 55, none repeated more than three consecutive times.