There are 5000 households in a small town, and each household has no more than 2 children. Some families have 1 child, and the remaining half of the families have 2 children. How many children are there in this town? Use equations and formulas in two ways.
一个小镇共有5000户居民，每户居民的子女都不超过2个，一部分家庭有1个孩子，余下家庭的一半每家有2个孩子．此镇共有孩子多少个？用方程和算式两种方法．
<result>5_000</result>