Mass number dependence of BCS pairing gap in the on-shell limit