Coded triangle numbers