login
A039375
Numbers whose base-9 representation has the same nonzero number of 2's and 6's.
12
24, 56, 105, 137, 168, 177, 195, 204, 213, 216, 217, 219, 220, 221, 223, 224, 231, 240, 267, 299, 348, 380, 429, 461, 488, 497, 504, 505, 507, 508, 509, 511, 512, 515, 524, 533, 551, 560, 591, 623, 672, 704, 753, 785, 834, 866, 897, 906, 924, 933, 942, 945
OFFSET
1,1
LINKS
MATHEMATICA
Select[Range[1000], DigitCount[#, 9, 2]==DigitCount[#, 9, 6]>0&] (* Harvey P. Dale, Jun 30 2015 *)
PROG
(MATLAB) x = 0:945; d = dec2base(x, 9)-'0'; s1 = sum(d==2, 2); s2 = sum(d==6, 2); a = x(s1==s2 & s1>0); disp(regexprep(num2str(a), ' +', ', ')) % Chris R. Rehmann, Apr 08 2026
KEYWORD
nonn,base,easy
STATUS
approved