login
A039082
Numbers whose base-9 representation has the same number of 0's and 6's.
14
1, 2, 3, 4, 5, 7, 8, 10, 11, 12, 13, 14, 16, 17, 19, 20, 21, 22, 23, 25, 26, 28, 29, 30, 31, 32, 34, 35, 37, 38, 39, 40, 41, 43, 44, 46, 47, 48, 49, 50, 52, 53, 54, 64, 65, 66, 67, 68, 70, 71, 73, 74, 75, 76, 77, 79, 80, 87, 91, 92, 93, 94, 95, 97, 98, 100, 101, 102, 103
OFFSET
1,2
LINKS
MATHEMATICA
Select[Range[200], DigitCount[#, 9, 0]==DigitCount[#, 9, 6]&] (* Harvey P. Dale, Oct 20 2014 *)
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==6)
a(j) = k; j = j+1;
end
k = k+1;
end
disp(regexprep(num2str(a'), ' +', ', ')) % Chris R. Rehmann, Mar 04 2026
KEYWORD
nonn,base,easy
STATUS
approved