login
A039370
Numbers whose base-9 representation has the same nonzero number of 1's and 7's.
14
16, 64, 88, 106, 115, 124, 133, 142, 144, 146, 147, 148, 149, 150, 152, 160, 178, 226, 259, 307, 340, 388, 421, 469, 502, 550, 568, 576, 578, 579, 580, 581, 582, 584, 586, 595, 604, 613, 622, 640, 664, 712, 736, 754, 763, 772, 781, 790, 792, 794, 795, 796, 797
OFFSET
1,1
LINKS
MATHEMATICA
Select[Range[800], DigitCount[#, 9, 1]==DigitCount[#, 9, 7]>0&] (* Harvey P. Dale, Jan 30 2021 *)
PROG
(MATLAB) x = 0:797; d = dec2base(x, 9)-'0'; s1 = sum(d==1, 2); s2 = sum(d==7, 2); a = x(s1==s2 & s1>0); disp(regexprep(num2str(a), ' +', ', ')) % Chris R. Rehmann, Apr 06 2026
KEYWORD
nonn,base,easy
STATUS
approved