Any bacteria that can synthesize organic carbide from inorganic carbon is called autotrophic bacteria. Heterotrophic bacteria are bacteria that can't use inorganic carbon, but need organic carbon to synthesize organic carbide. It has nothing to do with nitrogen source! ~