login
A039376
Numbers whose base-9 representation has the same nonzero number of 2's and 7's.
13
25, 65, 106, 146, 169, 178, 196, 205, 214, 223, 225, 226, 228, 229, 230, 231, 233, 241, 268, 308, 349, 389, 430, 470, 511, 551, 569, 578, 585, 586, 588, 589, 590, 591, 593, 596, 605, 614, 623, 641, 673, 713, 754, 794, 835, 875, 898, 907, 925, 934, 943, 952
OFFSET
1,1
LINKS
MATHEMATICA
Select[Range[1000], DigitCount[#, 9, 2]==DigitCount[#, 9, 7]>0&] (* Harvey P. Dale, Apr 04 2020 *)
PROG
(MATLAB) x = 0:952; d = dec2base(x, 9)-'0'; s1 = sum(d==2, 2); s2 = sum(d==7, 2); a = x(s1==s2 & s1>0); disp(regexprep(num2str(a), ' +', ', ')) % Chris R. Rehmann, Apr 10 2026
KEYWORD
nonn,base,easy
STATUS
approved