login
A039377
Numbers whose base-9 representation has the same nonzero number of 2's and 8's.
14
26, 74, 107, 155, 170, 179, 197, 206, 215, 224, 233, 234, 235, 237, 238, 239, 240, 241, 269, 317, 350, 398, 431, 479, 512, 560, 593, 641, 650, 659, 666, 667, 669, 670, 671, 672, 673, 677, 686, 695, 704, 713, 755, 803, 836, 884, 899, 908, 926, 935, 944, 953
OFFSET
1,1
LINKS
MATHEMATICA
Select[Range[953], DigitCount[#, 9, 2]==DigitCount[#, 9, 8]>0&] (* Chris R. Rehmann, Apr 10 2026 *)
PROG
(MATLAB) x = 0:953; d = dec2base(x, 9)-'0'; s1 = sum(d==2, 2); s2 = sum(d==8, 2); a = x(s1==s2 & s1>0); disp(regexprep(num2str(a), ' +', ', ')) % Chris R. Rehmann, Apr 10 2026
KEYWORD
nonn,base,easy
STATUS
approved