125 is in the sequence because 125 = (1,4,8)_9 = (1,7,5)_8 and 1+4+8 = 1+7+5. 126 is not in the sequence because 126 = (1,5,0)_9 = (1,7,6)_8 but 1+5+0 <> 1+7+6. - R. J. Mathar, Jun 30 2021
MATHEMATICA
Select[Range[600], Total[IntegerDigits[#, 8]]==Total[IntegerDigits[#, 9]]&] (* Harvey P. Dale, Mar 22 2026 *)