login
A039108
Numbers whose base-9 representation has the same number of 5's and 8's.
11
0, 1, 2, 3, 4, 6, 7, 9, 10, 11, 12, 13, 15, 16, 18, 19, 20, 21, 22, 24, 25, 27, 28, 29, 30, 31, 33, 34, 36, 37, 38, 39, 40, 42, 43, 53, 54, 55, 56, 57, 58, 60, 61, 63, 64, 65, 66, 67, 69, 70, 77, 81, 82, 83, 84, 85, 87, 88, 90, 91, 92, 93, 94, 96, 97, 99, 100, 101, 102
OFFSET
1,3
LINKS
MATHEMATICA
Select[Range[0, 150], DigitCount[#, 9, 5]==DigitCount[#, 9, 8]&] (* Harvey P. Dale, Aug 28 2020 *)
PROG
(MATLAB) x = 0:21523; d = dec2base(x, 9)-'0'; a = x(sum(d==5, 2)==sum(d==8, 2)); disp(regexprep(num2str(a), ' +', ', ')) % Chris R. Rehmann, Mar 25 2026
KEYWORD
nonn,base,easy
STATUS
approved