Auditory cortex (ACX) neurons are sensitive to spectro-temporal sound patterns and violations in patterns induced by rare stimuli embedded within streams of sounds. We investigate the auditory cortical representation of repeated presentations of sequences of sounds with standard stimuli(common) with an embedded deviant (rare) stimulus in two conditions-Periodic (Fixed deviant position) or Random (Random deviant position), using extracellular single-unit and 2-photon Ca+2 imaging recordings in Layer 2/3 neurons of the mouse ACX. In the population average, responses increased over repetitions in the Random-condition and were suppressed or did not change in the Periodic-condition, showing irregularity preference. A subset of neurons also showed the opposite behavior, indicating regularity preference. Pairwise noise correlations were higher in Random-condition over Periodic-condition, suggesting the role of recurrent connections. 2-photon Ca+2 imaging of excitatory (EX) and parvalbumin-positive (PV) and somatostatin-positive (SOM) inhibitory neurons, showed different categories of adaptation or change in response over repetitions (categorized by the sign of the slope of change) as observed with single units. However, the examination of functional connectivity between pairs of neurons of different categories showed that EX-PV connections behaved opposite to the EX-EX and EX-SOM pairs that show more functional connections outside category in Random-condition than Periodic-condition. Finally considering Regularity preference, Irregularity preference and no preference categories, showed that EX-EX and EX-SOM connections to be in largely separate functional subnetworks with the different preferences, while EX-PV connections were more spread. Thus separate subnetworks could underlie the coding of periodic and random sound sequences.