One filament. Two complementary jobs.
Filamentous cyanobacteria
In filamentous cyanobacteria, vegetative cells capture carbon through photosynthesis, while specialised heterocysts fix nitrogen. Their arrangement and frequency help coordinate the exchange of carbon and nitrogen.
Nitrogen fixation is a population task.