login
A039094
Numbers whose base-9 representation has the same number of 2's and 6's.
12
0, 1, 3, 4, 5, 7, 8, 9, 10, 12, 13, 14, 16, 17, 24, 27, 28, 30, 31, 32, 34, 35, 36, 37, 39, 40, 41, 43, 44, 45, 46, 48, 49, 50, 52, 53, 56, 63, 64, 66, 67, 68, 70, 71, 72, 73, 75, 76, 77, 79, 80, 81, 82, 84, 85, 86, 88, 89, 90, 91, 93, 94, 95, 97, 98, 105, 108, 109, 111
OFFSET
1,3
LINKS
MATHEMATICA
Select[Range[0, 120], DigitCount[#, 9, 2]==DigitCount[#, 9, 6]&] (* Harvey P. Dale, May 03 2018 *)
PROG
(MATLAB) x = 0:25426; d = dec2base(x, 9)-'0'; a = x(sum(d==2, 2)==sum(d==6, 2)); disp(regexprep(num2str(a), ' +', ', ')) % Chris R. Rehmann, Mar 16 2026
KEYWORD
nonn,base,easy
STATUS
approved