login
A039095
Numbers whose base-9 representation has the same number of 2's and 7's.
13
0, 1, 3, 4, 5, 6, 8, 9, 10, 12, 13, 14, 15, 17, 25, 27, 28, 30, 31, 32, 33, 35, 36, 37, 39, 40, 41, 42, 44, 45, 46, 48, 49, 50, 51, 53, 54, 55, 57, 58, 59, 60, 62, 65, 72, 73, 75, 76, 77, 78, 80, 81, 82, 84, 85, 86, 87, 89, 90, 91, 93, 94, 95, 96, 98, 106, 108, 109, 111
OFFSET
1,3
LINKS
MATHEMATICA
Select[Range[0, 200], DigitCount[#, 9, 2]==DigitCount[#, 9, 7]&] (* Harvey P. Dale, Oct 15 2022 *)
PROG
(MATLAB) x = 0:25112; d = dec2base(x, 9)-'0'; a = x(sum(d==2, 2)==sum(d==7, 2)); disp(regexprep(num2str(a), ' +', ', ')) % Chris R. Rehmann, Mar 16 2026
KEYWORD
nonn,base,easy
STATUS
approved