The purpose of this work is to provide an in-depth interpretation of the optical and electronic properties of a series of aromatic oligomers and polymers, including [N-(4-(5-(3-(1,3,4-oxadiazol-2,5-ylene). These polymers and oligomers show great potential for application to organic light-emitting diodes (OLEDs) as efficient blue emitters due to the tuning of the optical and electronic properties. The geometric and electronic structures of the oligomers in the ground state were investigated using density functional theory (DFT) and the ab initio HF, whereas the lowest singlet excited state of NPPP 1 was optimized with ab initio configuration interaction singles (CIS). To assign the absorption and emission peaks observed in the experiment, the absorption and emission spectra of the ground and lowest singlet excited states were calculated with time-dependent DFT (TD-DFT) and Zerner's independent neglect of differential overlap (ZINDO). All DFT calculations were performed using the B3LYP functional and the 6-31G basis set. The results show that the HOMO, LUMO, energy gaps, ionization potentials, and electron affinities for these polymers are affected by increasing the conjugated chain, which favors the hole and electron injection into OLED. The trend of the variation of Δ H-L and the lowest excitation energies with 1/n, and the electronic structure and optical properties of these polymers were extrapolated and analyzed. The absorption spectra exhibit red shifts to some extent [the absorption spectra: 359.