login
A039366
Numbers whose base-9 representation has the same nonzero number of 1's and 3's.
10
12, 28, 84, 102, 108, 110, 112, 113, 114, 115, 116, 120, 129, 138, 147, 156, 174, 190, 244, 252, 254, 256, 257, 258, 259, 260, 262, 280, 289, 298, 307, 316, 336, 352, 417, 433, 498, 514, 579, 595, 660, 676, 732, 750, 756, 758, 760, 761, 762, 763, 764, 768, 777
OFFSET
1,1
LINKS
MATHEMATICA
Select[Range[800], DigitCount[#, 9, 1]==DigitCount[#, 9, 3]>0&] (* Harvey P. Dale, Aug 03 2017 *)
PROG
(MATLAB) x = 0:777; d = dec2base(x, 9)-'0'; s1 = sum(d==1, 2); s2 = sum(d==3, 2); a = x(s1==s2 & s1>0); disp(regexprep(num2str(a), ' +', ', ')) % Chris R. Rehmann, Apr 04 2026
KEYWORD
nonn,base,easy
STATUS
approved