login
A039084
Numbers whose base-9 representation has the same number of 1's and 2's.
9
0, 3, 4, 5, 6, 7, 8, 11, 19, 27, 30, 31, 32, 33, 34, 35, 36, 39, 40, 41, 42, 43, 44, 45, 48, 49, 50, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 63, 66, 67, 68, 69, 70, 71, 72, 75, 76, 77, 78, 79, 80, 83, 99, 102, 103, 104, 105, 106, 107, 110, 119, 128, 137, 146, 155, 163
OFFSET
1,2
LINKS
MATHEMATICA
Select[Range[0, 170], DigitCount[#, 9, 1]==DigitCount[#, 9, 2]&] (* Harvey P. Dale, Mar 23 2011 *)
PROG
(MATLAB) x = 0:29211; d = dec2base(x, 9)-'0'; a = x(sum(d==1, 2)==sum(d==2, 2));
disp(regexprep(num2str(a), ' +', ', ')) % Chris R. Rehmann, Mar 05 2026
CROSSREFS
KEYWORD
nonn,base,easy
STATUS
approved