Number of ways that number n can be represented as the sum of four nonzero repdigit numbers.
0, 1, 2, 3, 5, 6, 9, 11, 15, 18, 22, 26, 31, 34, 39, 42, 46, 48, 51, 51, 53, 51, 52, 49, 49, 45, 44, 40, 39, 35, 34, 31, 30, 29, 28, 27, 27, 26, 26, 26, 26, 26, 26, 25, 28, 27, 28, 28, 29, 29, 30, 30, 31, 31, 30, 33, 32, 32, 32, 32, 32, 32, 32, 32, 32, 30, 36, 34
0
The first zero term is for n = 2219.
T. D. Noe, Plot of 5001 terms
T. D. Noe, Table of 5001 terms
Eric W. Weisstein, MathWorld: Repdigit
(Mma) maxLen = 4; repNums = Union[Flatten[Table[FromDigits[Table[a, {len}]], {a, 0, 9}, {len, maxLen}]]]; Join[{0}, Table[Length[IntegerPartitions[n, 4, Rest[repNums]]], {n, 5000}]]
nonn,base
T. D. Noe, Jul 27 2016