login
A039079
Numbers whose base-9 representation has the same number of 0's and 3's.
11
1, 2, 4, 5, 6, 7, 8, 10, 11, 13, 14, 15, 16, 17, 19, 20, 22, 23, 24, 25, 26, 27, 37, 38, 40, 41, 42, 43, 44, 46, 47, 49, 50, 51, 52, 53, 55, 56, 58, 59, 60, 61, 62, 64, 65, 67, 68, 69, 70, 71, 73, 74, 76, 77, 78, 79, 80, 84, 91, 92, 94, 95, 96, 97, 98, 100, 101, 103, 104
OFFSET
1,2
LINKS
MATHEMATICA
Select[Range[200], DigitCount[#, 9, 0]==DigitCount[#, 9, 3]&] (* Harvey P. Dale, Sep 18 2016 *)
PROG
(MATLAB)
a = NaN(10000, 1); k = 0; j = 1;
while any(isnan(a))
d = dec2base(k, 9)-'0';
if sum(d==0)==sum(d==3)
a(j) = k; j = j+1;
end
k = k+1;
end
disp(regexprep(num2str(a'), ' +', ', ')) % Chris R. Rehmann, Mar 01 2026
KEYWORD
nonn,base,easy
STATUS
approved