login
A039372
Numbers whose base-9 representation has the same nonzero number of 2's and 3's.
9
21, 29, 102, 110, 165, 174, 189, 190, 193, 194, 195, 196, 197, 201, 210, 219, 228, 237, 245, 254, 261, 262, 265, 266, 267, 268, 269, 281, 290, 299, 308, 317, 345, 353, 426, 434, 507, 515, 588, 596, 669, 677, 750, 758, 831, 839, 894, 903, 918, 919, 922, 923
OFFSET
1,1
LINKS
MATHEMATICA
Select[Range[1000], DigitCount[#, 9, 2]==DigitCount[#, 9, 3]>0&] (* Harvey P. Dale, Sep 24 2015 *)
PROG
(MATLAB) x = 0:923; d = dec2base(x, 9)-'0'; s1 = sum(d==2, 2); s2 = sum(d==3, 2); a = x(s1==s2 & s1>0); disp(regexprep(num2str(a), ' +', ', ')) % Chris R. Rehmann, Apr 06 2026
CROSSREFS
KEYWORD
nonn,base,easy
STATUS
approved