Split a 5G NR Physical Cell ID into NID(1) (SSS) and NID(2) (PSS), or build it back — with mod-3 and mod-30 groups for collision, confusion and PRACH/DMRS planning.
📡 PCI = 3·N_ID1 + N_ID2 · 0–1007 (TS 38.211)mod-3 = PSS group (avoid between neighbours); mod-30 affects PRACH root & DMRS planning.
A 5G NR Physical Cell ID is built from two layers, per 3GPP TS 38.211 §7.4.2:
For planning, three rules matter: collision (two neighbours share the same PCI), confusion (a cell has two neighbours with the same PCI), and mod-3 / mod-30 separation. mod-3 sets the PSS sequence — reusing it on overlapping cells degrades the SSS detection; mod-30 governs the PRACH root-sequence and PUSCH/PDSCH DMRS allocation, so a good plan keeps neighbours in different mod-3 and mod-30 classes.