login
A039374
Numbers whose base-9 representation has the same nonzero number of 2's and 5's.
11
23, 47, 104, 128, 167, 176, 194, 203, 207, 208, 210, 211, 213, 214, 215, 221, 230, 239, 266, 290, 347, 371, 407, 416, 423, 424, 426, 427, 429, 430, 431, 434, 443, 461, 470, 479, 509, 533, 590, 614, 671, 695, 752, 776, 833, 857, 896, 905, 923, 932, 936, 937
OFFSET
1,1
LINKS
MATHEMATICA
Select[Range[1000], DigitCount[#, 9, 2]==DigitCount[#, 9, 5]>0&] (* Harvey P. Dale, Dec 16 2019 *)
PROG
(MATLAB) x = 0:937; d = dec2base(x, 9)-'0'; s1 = sum(d==2, 2); s2 = sum(d==5, 2); a = x(s1==s2 & s1>0); disp(regexprep(num2str(a), ' +', ', ')) % Chris R. Rehmann, Apr 08 2026
KEYWORD
nonn,base,easy
STATUS
approved