Find the number of positive integers that satisfy both the following conditions:

Each digit is a or a

The sum of the digits is

I tried it on my own and 52, 45, and 4004 have all been incorrect.

Guest Jul 21, 2023

#1**0 **

THE LEAST you could do is proof-read your question before you post it. Notice something missing?

Guest Jul 21, 2023

#8**0 **

[2222, 11222, 12122, 12212, 12221, 21122, 21212, 21221, 22112, 22121, 22211, 111122, 111212, 111221, 112112, 112121, 112211, 121112, 121121, 121211, 122111, 211112, 211121, 211211, 212111, 221111, 1111112, 1111121, 1111211, 1112111, 1121111, 1211111, 2111111, 11111111]**> Total of all such numbers== 34**

Guest Jul 22, 2023