login
A039378
Numbers whose base-9 representation has the same nonzero number of 3's and 4's.
9
31, 39, 112, 120, 193, 201, 247, 256, 265, 279, 280, 281, 284, 285, 286, 287, 292, 301, 310, 319, 327, 336, 345, 351, 352, 353, 356, 357, 358, 359, 372, 381, 390, 399, 436, 444, 517, 525, 598, 606, 679, 687, 760, 768, 841, 849, 922, 930, 976, 985, 994, 1008
OFFSET
1,1
LINKS
MATHEMATICA
Select[Range[1000], DigitCount[#, 9, 3]==DigitCount[#, 9, 4]>0&] (* Harvey P. Dale, Apr 17 2022 *)
PROG
(MATLAB) x = 0:1008; d = dec2base(x, 9)-'0'; s1 = sum(d==3, 2); s2 = sum(d==4, 2); a = x(s1==s2 & s1>0); disp(regexprep(num2str(a), ' +', ', ')) % Chris R. Rehmann, Apr 10 2026
CROSSREFS
KEYWORD
nonn,base,easy
STATUS
approved