login
A039365
Numbers whose base-9 representation has the same nonzero number of 1's and 2's.
9
11, 19, 83, 99, 102, 103, 104, 105, 106, 107, 110, 119, 128, 137, 146, 155, 163, 171, 174, 175, 176, 177, 178, 179, 190, 199, 208, 217, 226, 235, 254, 262, 335, 343, 416, 424, 497, 505, 578, 586, 659, 667, 731, 747, 750, 751, 752, 753, 754, 755, 758, 767, 776
OFFSET
1,1
LINKS
MATHEMATICA
Select[Range[1000], DigitCount[#, 9, 1]==DigitCount[#, 9, 2]>0&] (* Harvey P. Dale, Jun 08 2022 *)
PROG
(MATLAB) x = 0:776; d = dec2base(x, 9)-'0'; s1 = sum(d==1, 2); s2 = sum(d==2, 2); a = x(s1==s2 & s1>0); disp(regexprep(num2str(a), ' +', ', ')) % Chris R. Rehmann, Apr 04 2026
CROSSREFS
KEYWORD
nonn,base,easy
STATUS
approved