When the returns to scale of a production process vary with the intensity it is operated at, an AK model with constant returns to scale in production arises endogenously due to replication driven by profit maximization. If replication occurs at the efficiency-maximizing scale, as with perfect competition, the result applies also when the number of production processes must be discrete, thus, overcoming the so-called integer problem. When competition is imperfect, there is only convergence toward the AK model for large enough input use, so an economy is more prone to stalling in a steady state without growth, the smaller and less competitive it is.