Skip to Content
SymmetrySymmetry
  • Article
  • Open Access

21 October 2026

20 Pages

Power Congruence Graphs over Two Coprime Moduli: Symmetry of the Rook Graph Blow-Up and Spectral Invariants

School of Mathematics and Physics, Jiangsu University of Technology, 1801 Zhongwu Rd., Changzhou 213001, China
This article belongs to the Special Issue Mathematics: Feature Papers 2026

Abstract

We study the undirected power congruence graph G n k ( { p , q } ) on vertex set V = { 0 , 1 , … , n − 1 } in which two distinct vertices a , b are adjacent whenever a k ≡ b k ( mod p ) or a k ≡ b k ( mod q ) , where p , q are distinct primes with p q < n and k ≥ 1 is fixed. While the single-prime moduli set { p , p 2 , … , p t } decomposes into a disjoint union of complete graphs, we show that two coprime prime moduli produce a fundamentally different structure: the non-degenerate part of the graph is a blow-up of the rook graph on a d p × d q grid, where d p = ( p − 1 ) / gcd ( k , p − 1 ) and d q = ( q − 1 ) / gcd ( k , q − 1 ) . We give explicit block sizes via the Chinese Remainder Theorem, describe the three degenerate residue classes V 00 , V p 0 , V 0 q and their gluing to the main rook graph, and derive the adjacency and Laplacian spectra through an equitable partition. Explicit formulas for the Kirchhoff index, Estrada index and graph energy in terms of the spectrum of a quotient matrix of size ( d p + 1 ) ( d q + 1 ) follow. Three worked examples ( n = 30 , p = 2 , q = 3 , k = 2 ; n = 20 , p = 3 , q = 5 , k = 2 ; n = 100 , p = 3 , q = 7 , k = 3 ) illustrate the uniform and non-uniform cases. The row/column permutation symmetry of the base grid is inherited by the blow-up and underlies the equitable partition.

1. Introduction

Graphs defined by number-theoretic congruence relations have a long history, beginning with the study of directed power graphs associated with the congruence a k ≡ b ( mod m ) [1,2]. Classical undirected congruence graphs connect a , b when a ≡ b ( mod m ) ; replacing the linear congruence by the power congruence a k ≡ b k ( mod m ) introduces genuine algebraic structure governed by the k-th power map on the multiplicative group ( Z / m Z ) × [3,4].
The study of number-theoretic graphs has proceeded in several related strands. The directed power graph G m on Z / m Z , with an edge a → b whenever a k ≡ b ( mod m ) , was analyzed by Somer and Křížek, who classified its cycles and components for prime-power moduli and identified the role of the k-th power map on the cyclic group ( Z / p Z ) × [1]. Deng and Yuan later exploited the symmetry between the image and kernel of this map to decompose the digraph into isomorphic subgraphs [2]. An undirected counterpart was introduced by Malik and Mahmood, who studied the simple graph on { 0 , 1 , … , n − 1 } in which a and b are joined whenever the exponential congruence a x ≡ b ( mod n ) is solvable, and showed that for n = p 1 k 1 ⋯ p r k r this graph has exactly 2 r components, with a tree component rooted at zero in the prime-square case [3]. The same fibre–cycle anatomy appears in the iteration digraphs of the quadratic square mapping on prime fields [5], of powers modulo a prime [6], and of quadratic congruences with composite moduli [7,8].
A parallel, group-theoretic strand studies power graphs of semigroups and groups: in the undirected power graph of a finite group, two distinct elements are adjacent when one is a power of the other [9], a line of research surveyed in [10]. Our construction is number-theoretic rather than group-theoretic (adjacency is governed by the k-th power map on the residue rings Z / p Z and Z / q Z , not by the multiplicative relation “is a power of”), but the two strands share the central phenomenon that power maps impose a rigid, highly symmetric clique structure on their domain, which is precisely the structure that the present paper exploits.
More recent work has considered moduli sets containing several moduli simultaneously rather than a single integer [4], and the power congruence graph G n k ( M p ) over the prime-power hierarchy { p , p 2 , … , p t } was introduced and analyzed in [11], where it was shown to decompose into d p + 1 disjoint complete graphs. This paper lies at the intersection of these strands: we replace the single-prime moduli set by two distinct primes M = { p , q } and observe that the disjoint cliques of [11] combine into a connected rook graph blow-up. Throughout we impose the standing assumption p q < n , so that at least one complete Chinese-remainder period is present and every block C i j is non-empty. Because adjacency is an or condition ( a k ≡ b k ( mod p ) or ( mod q ) ), the two equivalence relations generated by p and q are not independent: vertices connected through either modulus end up in the same component. The resulting structure is not a disjoint union of cliques but a blow-up of a rook graph, and the graph becomes connected rather than disconnected. This single-prime → two-prime transition, driven purely by the number of coprime moduli, is the phenomenon that motivates the paper: it is invisible in the defining congruences, yet it completely reorganizes the global structure, and the row/column permutation symmetry of the emerging grid is the symmetry that makes the graph analytically tractable. We carry out the full structural and spectral analysis and derive explicit formulas for the Kirchhoff index, Estrada index and graph energy in terms of the spectrum of a quotient matrix of size ( d p + 1 ) ( d q + 1 ) .
The main contributions are:
  • a complete structural description of G n k ( { p , q } ) : the CRT block decomposition C i j , explicit block sizes including the residue corrections ρ when p q ∤ n , and the gluing of the three degenerate residue classes to the main rook grid (Theorems 1–4);
  • a spectral reduction: the adjacency and Laplacian spectra, and with them the Kirchhoff, Estrada and Laplacian–Estrada indices, the graph energy and the spanning-tree count, are determined by a quotient matrix of size ( d p + 1 ) ( d q + 1 ) , with closed forms in the uniform-cell case and the exact formula λ 1 = n p q ρ ( B 0 ) − 1 for the spectral radius (Theorems 5 and 6, Corollaries  7 and 8, Section 5.1);
  • exact values of global invariants: algebraic connectivity, clique, chromatic, domination and independence numbers, diameter 2, and the automorphism group (Section 3.1, Section 3.2, Section 3.3 and Section 3.4).

2. Structure of G n k ({ p , q })

2.1. Preliminaries

Let V = { 0 , 1 , … , n − 1 } , let p , q be distinct primes with p q < n , and fix k ≥ 1 . For distinct a , b ∈ V define
a ∼ b ⇔ a k ≡ b k ( mod p ) or a k ≡ b k ( mod q ) ,
and set a ≁ a (the graph has no loops). Write
c p = gcd ( k , p − 1 ) , d p = p − 1 c p ,
and similarly c q = gcd ( k , q − 1 ) , d q = ( q − 1 ) / c q . The k-th power map ϕ p : ( Z / p Z ) × → ( Z / p Z ) × , x ↦ x k , is a group endomorphism of a cyclic group of order p − 1 . Its image has size d p , and every image point has exactly c p preimages. Denote the image by
Im ( ϕ p ) = { u 1 , … , u d p } , Im ( ϕ q ) = { v 1 , … , v d q } .
Partition V according to divisibility by p and q. We use congruence notation, in which the negation stroke crosses the whole symbol, so that the four cases are unmistakable:
V 00 = { a : a ≡ 0 ( mod p ) , a ≡ 0 ( mod q ) } , V p 0 = { a : a ≡ 0 ( mod p ) , a ≢ 0 ( mod q ) } , V 0 q = { a : a ≢ 0 ( mod p ) , a ≡ 0 ( mod q ) } , V 000 = { a : a ≢ 0 ( mod p ) , a ≢ 0 ( mod q ) } .
Equivalently, V 00 , V p 0 , V 0 q , V 000 collect the vertices divisible by both primes, by p only, by q only, and by neither prime; the four cases are summarized in Table 1. The non-degenerate part V 000 is the main object; V 00 , V p 0 , V 0 q are the degenerate classes.
Table 1. The four residue classes according to divisibility by p and q.

2.2. Structure of the Main Graph G 0 = G n k ( { p , q } ) [ V 000 ]

By the Chinese Remainder Theorem, ( Z / p q Z ) × ≅ ( Z / p Z ) × × ( Z / q Z ) × . Partition V 000 into blocks
C i j = { a ∈ V 000 : a k ≡ u i ( mod p ) , a k ≡ v j ( mod q ) } , 1 ≤ i ≤ d p , 1 ≤ j ≤ d q .
Definition 1
(Rook graph blow-up). The (unweighted) rook graph R d p , d q has vertices ( i , j ) with 1 ≤ i ≤ d p , 1 ≤ j ≤ d q , and edges between ( i , j ) and ( i ′ , j ′ ) whenever i = i ′ or j = j ′ (but not both). Its blow-up replaces each vertex ( i , j ) by a clique C i j of size n i j and joins two cliques completely whenever the corresponding rook-graph vertices are adjacent.
We fix the following convention for the block indices: in C i j ′ the prime follows the column index (j is replaced by j ′ ), while in C i ′ j it follows the row index (i is replaced by i ′ ).
Theorem 1
(Rook graph structure). The graph induced on V 000 is the blow-up of R d p , d q [12]:
1. 
each block C i j induces a complete graph;
2. 
C i j and C i j ′ ( j ≠ j ′ ; same row i) are fully joined;
3. 
C i j and C i ′ j ( i ≠ i ′ ; same column j) are fully joined;
4. 
C i j and C i ′ j ′ ( i ≠ i ′ , j ≠ j ′ ) have no edges between them;
5. 
under the weaker assumption n ≥ p q , every C i j is non-empty and G 0 is connected (in particular under the standing assumption p q < n ).
Proof. 
(i) For a , b ∈ C i j , a k ≡ u i ≡ b k ( mod p ) , hence a ∼ b . (ii) For a ∈ C i j , b ∈ C i j ′ , again a k ≡ u i ≡ b k ( mod p ) . (iii) Symmetrically, a k ≡ v j ≡ b k ( mod q ) . (iv) If i ≠ i ′ and j ≠ j ′ , then a k ≢ b k modulo both p and q, so neither adjacency condition holds. (v) Because n ≥ p q , the first CRT period 0 , 1 , … , p q − 1 lies in V. Among these integers exactly φ ( p q ) = ( p − 1 ) ( q − 1 ) are coprime to p q , and CRT identifies them with the pairs ( Z / p Z ) × × ( Z / q Z ) × . On the cyclic group ( Z / p Z ) × of order p − 1 the kernel of the k-th power map has order c p = gcd ( k , p − 1 ) , so every image point u i has exactly c p preimages (and every v j has exactly c q preimages modulo q); hence every pair ( u i , v j ) has exactly c p c q ≥ 1 preimages in the first period, and each C i j contains c p c q ≥ 1 vertices. Given C i j and C i ′ j ′ with i ≠ i ′ and j ≠ j ′ , the intermediate block C i j ′ (the block in row i and column j ′ ) satisfies C i j ↔ C i j ′ by (ii) and C i j ′ ↔ C i ′ j ′ by (iii). Thus all blocks lie in one connected component.    □
Remark 1
(The case n < p q ). The connectivity argument in (v) uses the fact that every intermediate block C i j ′ is non-empty, which is guaranteed as soon as the first CRT period is present in V, i.e., when n ≥ p q . If n < p q , some blocks are empty and the rook graph breaks into several components. For a concrete counterexample, take p = 3 , q = 7 , k = 1 , n = 5 . Then d p = 2 , d q = 6 , and
V 00 = { 0 } , V p 0 = { 3 } , V 0 q = ⌀ , V 000 = { 1 , 2 , 4 } .
The non-degenerate vertices split into three singleton blocks
C 1 , 1 = { 1 } , C 2 , 2 = { 2 } , C 1 , 4 = { 4 } .
Blocks C 1 , 1 and C 1 , 4 share the row index i = 1 and are therefore adjacent, giving the component { 1 , 4 } ; but C 2 , 2 shares neither a row nor a column with either of them, so vertex 2 is isolated inside V 000 . The degenerate vertices 0 and 3 attach to each other (since V 00 is joined to V p 0 ) but to no block, because the column j = 3 required by 3 ∈ V p 0 , 3 has no non-degenerate vertex below n = 5 . The full graph thus has three connected components { 0 , 3 } , { 1 , 4 } and { 2 } , illustrating that the period hypothesis cannot be dropped.
For n < p q the picture is completely described by the following sharp criterion.
Proposition 1
(Sharp connectivity criterion). 
1. 
If n ≥ p q , every block C i j is non-empty and G 0 is connected.
2. 
If n < p q , the main graph G 0 is connected if and only if the index set S = { ( i , j ) : C i j ≠ ⌀ } ⊆ { 1 , … , d p } × { 1 , … , d q } is connected under the relation ( i , j ) ∼ ( i ′ , j ′ ) ⇔ i = i ′ or j = j ′ .
Proof. 
Part (a) is Theorem 1(v). For (b), each non-empty block C i j is a clique, and two blocks are fully joined exactly when their indices share a row or a column (Theorem 1); hence G 0 is connected precisely when S is connected in the relation ∼.    □
A concrete illustration of this blow-up structure for d p = d q = 2 is shown in Figure 1.
Figure 1. Schematic of the rook graph blow-up for d p = d q = 2 . Blue nodes are the main blocks C i j ; orange nodes V p 0 , j attach to columns; green nodes V 0 q , i attach to rows; the red node V 00 sits at the center and joins all degenerate blocks. Diagonal blocks C 11 and C 22 (as well as C 12 and C 21 ) have no direct edge. Edges within the cliques V p 0 and V 0 q (between V p 0 , 1 and V p 0 , 2 , and between V 0 q , 1 and V 0 q , 2 ) are omitted for clarity.

2.3. Block Sizes

Write n = t p q + s with 0 ≤ s < p q .
Theorem 2.
In each complete period of length p q , every block C i j contains exactly c p c q vertices. More generally,
| C i j | = t c p c q + ρ i j ( s ) ,
where
ρ i j ( s ) = # { 0 ≤ a < s : p ∤ a , q ∤ a , a k ≡ u i ( mod p ) , a k ≡ v j ( mod q ) } .
Proof. 
By CRT, a vertex a mod p q with p ∤ a , q ∤ a corresponds to a pair ( a mod p , a mod q ) ∈ ( Z / p Z ) × × ( Z / q Z ) × . The fiber over ( u i , v j ) has size c p c q because each u i has c p preimages modulo p and each v j has c q preimages modulo q. Summing over all i , j gives d p d q c p c q = ( p − 1 ) ( q − 1 ) = φ ( p q ) , as required.    □

2.4. Gluing the Degenerate Classes

Theorem 3.
 
1. 
V p 0 is a clique. Split it by V p 0 , j = { a ∈ V p 0 : a k ≡ v j ( mod q ) } , 1 ≤ j ≤ d q . Then V p 0 , j is fully joined to every block C i j ( 1 ≤ i ≤ d p ) and to V 00 , and has no edges to C i j ′ with j ′ ≠ j nor to V 0 q .
2. 
Symmetrically, V 0 q is a clique; split it by V 0 q , i = { a ∈ V 0 q : a k ≡ u i ( mod p ) } . Each V 0 q , i is fully joined to every block C i j ( 1 ≤ j ≤ d q ) and to V 00 , and has no edges to C i ′ j with i ′ ≠ i nor to V p 0 .
3. 
V 00 is a clique fully joined to V p 0 and V 0 q , but has no edges to V 000 .
4. 
There are no edges between V p 0 and V 0 q .
Consequently, under the assumption n ≥ p q , the whole graph G n k ( { p , q } ) is connected (and in particular under the standing assumption p q < n ).
Proof. 
(i) Any a , b ∈ V p 0 satisfy a k ≡ b k ≡ 0 ( mod p ) , so they are adjacent. For a ∈ V p 0 , j and b ∈ C i j ′ , modulo p we have a k ≡ 0 ≠ u i ≡ b k , so that modulus does not contribute. Modulo q, a k ≡ v j by definition and b k ≡ v j ′ ; hence adjacency holds exactly when j = j ′ . The remaining claims follow by the same case check. (iv) For a ∈ V p 0 , b ∈ V 0 q , a k ≡ 0 ( mod p ) while b k ≢ 0 ( mod p ) , and a k ≢ 0 ( mod q ) while b k ≡ 0 ( mod q ) ; neither modulus gives adjacency. Connectivity: G 0 is connected by Theorem 1(v); each V p 0 , j attaches to column j of G 0 ; each V 0 q , i attaches to row i; and V 00 attaches to V p 0 and V 0 q .    □
Corollary 1.
In contrast to the single-prime case G n k ( M p ) , which is disconnected for sufficiently large n, the two-prime graph G n k ( { p , q } ) is connected whenever n ≥ p q .
Theorem 4.
The degenerate block sizes are
| V 00 | = ⌈ n / ( p q ) ⌉ , | V p 0 , j | = t c q + ρ j ( p ) ( s ) , | V 0 q , i | = t c p + ρ i ( q ) ( s ) ,
where the residue correction terms are
ρ j ( p ) ( s ) = # { 0 ≤ a < s : p ∣ a , q ∤ a , a k ≡ v j ( mod q ) } ,
ρ i ( q ) ( s ) = # { 0 ≤ a < s : p ∤ a , q ∣ a , a k ≡ u i ( mod p ) } .
Proof. 
Each period of length p q contributes exactly c q vertices to V p 0 , j : write a = p b with 1 ≤ b < q , q ∤ b . Since a k = p k b k and p is invertible modulo q, the condition a k ≡ v j ( mod q ) is equivalent to b k ≡ p − k v j ( mod q ) . Because v j lies in the image of the k-th power map and the image is a subgroup of ( Z / q Z ) × , the element p − k v j also lies in the image, and the congruence has exactly c q solutions b modulo q. Finally, V 00 consists of the multiples of p q in { 0 , 1 , … , n − 1 } , namely 0 , p q , … , ( t − 1 ) p q , together with t p q when s > 0 ; hence | V 00 | = t if s = 0 and t + 1 if s > 0 , which is precisely ⌈ n / ( p q ) ⌉ . The other formulas follow symmetrically.    □

3. Spectra and Graph Invariants

3.1. Equitable Partition and Spectra

The partition
P = { V 00 } ∪ { V p 0 , j : 1 ≤ j ≤ d q } ∪ { V 0 q , i : 1 ≤ i ≤ d p } ∪ { C i j : 1 ≤ i ≤ d p , 1 ≤ j ≤ d q }
is equitable. We use the following indexing convention throughout: V p 0 , j is numbered by the column j it attaches to ( 1 ≤ j ≤ d q ), and V 0 q , i by the row i it attaches to ( 1 ≤ i ≤ d p ); with this convention the degenerate blocks are indexed consistently with the rows and columns of the extended grid of Remark 6. Write
a 0 = | V 00 | , a p , j = | V p 0 , j | , a q , i = | V 0 q , i | , n i j = | C i j | .
All blocks are cliques. Let B be the quotient matrix: B L L ′ is the number of neighbors in block L ′ of a vertex in block L. The diagonal entries are B L L = | L | − 1 ; the off-diagonal entries are | L ′ | when blocks L , L ′ are fully joined and 0 otherwise, according to Theorem 3.
Remark 2
(Real spectrum of B). The quotient matrix B need not be symmetric, because B L L ′ = | L ′ | while B L ′ L = | L | . Nevertheless, let S be the n × | P | matrix whose column indexed by L is the normalized indicator vector 1 L / | L | . Then S T A S is symmetric, and a direct computation gives
S T A S = D B D − 1 , D = diag ( | L | ) L ∈ P .
Thus B is similar to the symmetric matrix S T A S , and all eigenvalues of B are real.
Remark 3
(Cauchy interlacing). Since the columns of S are orthonormal, the symmetric matrix S T A S is a principal compression of A. By the Cauchy interlacing theorem, the eigenvalues μ 1 ≥ ⋯ ≥ μ m of B interlace the eigenvalues λ 1 ≥ ⋯ ≥ λ n of A:
λ i ≥ μ i ≥ λ i + n − m , i = 1 , … , m .
In particular, the Perron root satisfies μ 1 = λ 1 (the partition is equitable), and each quotient eigenvalue satisfies | μ i | ≤ max | λ i | , | λ i + n − m | .
Theorem 5.
The adjacency spectrum of G consists of:
1. 
the eigenvalues of B;
2. 
the value − 1 with multiplicity | L | − 1 for each L ∈ P .
Proof. 
For a vector x supported on a single block L with ∑ v ∈ L x ( v ) = 0 , the internal clique contributes ∑ u ∈ L ∖ { v } x ( u ) = − x ( v ) , and every neighbor outside L lies on a block where x = 0 . Hence A x = − x . The remaining invariant vectors are constant on each block and are exactly the eigenvectors of B.    □
The degree of a vertex in block L is constant within L. Write it deg L . Directly from the adjacency pattern:
deg V 00 = ( a 0 − 1 ) + ∑ j a p , j + ∑ i a q , i ,
deg V p 0 , j = ∑ j ′ a p , j ′ − 1 + a 0 + ∑ i n i j ,
deg V 0 q , i = ∑ i ′ a q , i ′ − 1 + a 0 + ∑ j n i j ,
deg C i j = ( n i j − 1 ) + ∑ j ′ ≠ j n i , j ′ + ∑ i ′ ≠ i n i ′ , j + a p , j + a q , i .
Theorem 6.
The Laplacian spectrum [13] of G consists of:
1. 
the eigenvalues of L B = diag ( deg L ) − B ;
2. 
the value deg L + 1 with multiplicity | L | − 1 for each L ∈ P .
Proof. 
For the same block-supported, sum-zero vector x, ( L x ) ( v ) = deg L x ( v ) − ( A x ) ( v ) = ( deg L + 1 ) x ( v ) .    □

3.2. Graph Invariants

Let spec ( B ) = { λ 1 , … , λ m } and spec ( L B ) = { μ 1 = 0 , μ 2 , … , μ m } .
Corollary 2
(Kirchhoff index [14]). 
Kf ( G ) = n ∑ ℓ = 2 m 1 μ ℓ + ∑ L ∈ P | L | − 1 deg L + 1 .
Corollary 3
(Estrada index [15,16]). 
EE ( G ) = ∑ ℓ = 1 m e λ ℓ + e − 1 ∑ L ∈ P ( | L | − 1 ) .
Corollary 4
(Graph energy). 
E ( G ) = ∑ ℓ = 1 m | λ ℓ | + ∑ L ∈ P ( | L | − 1 ) .
Corollary 5
(Number of edges). 
e ( G ) = ∑ L ∈ P | L | 2 + ∑ L , L ′ ∈ P L < L ′ , L ↔ L ′ | L | | L ′ | ,
where we write e ( G ) for the number of edges to avoid confusion with the graph energy E ( G ) , and the second sum runs over unordered pairs of blocks that are fully joined.
Corollary 6
(Laplacian Estrada index). 
LEE ( G ) = ∑ ℓ = 1 m e μ ℓ + ∑ L ∈ P ( | L | − 1 ) e deg L + 1 .
Corollary 7
(Number of spanning trees). By the Matrix-Tree theorem,
τ ( G ) = 1 n ∏ ℓ = 2 m μ ℓ ∏ L ∈ P ( deg L + 1 ) | L | − 1 ,
where μ 2 , … , μ m are the non-zero Laplacian eigenvalues of L B (excluding the zero eigenvalue μ 1 = 0 ) and the second product collects the internal Laplacian eigenvalues deg L + 1 , each with multiplicity | L | − 1 (Theorem 6).
Corollary 8
(Closed spectrum of the main graph in the uniform-cell case). Assume p q ∣ n , so that every main block has the same size
h = | C i j | = t c p c q ,
every degenerate block V p 0 , j has size a p = t c q , and every V 0 q , i has size a q = t c p . The main graph G 0 is the blow-up of the rook graph K d p □ K d q with uniform cell size h. Its adjacency spectrum is
λ max = ( d p + d q − 1 ) h − 1 , multiplicity 1 , α p = ( d p − 1 ) h − 1 , multiplicity d q − 1 , α q = ( d q − 1 ) h − 1 , multiplicity d p − 1 , β = − h − 1 , multiplicity ( d p − 1 ) ( d q − 1 ) ,
together with the internal clique value − 1 of multiplicity d p d q ( h − 1 ) . In particular the Perron eigenvalue of G 0 is
ρ ( G 0 ) = ( d p + d q − 1 ) c p c q t − 1 .
Proof. 
The rook graph K d p □ K d q has adjacency eigenvalues d p + d q − 2 , d p − 2 , d q − 2 , − 2 with multiplicities 1, d q − 1 , d p − 1 , ( d p − 1 ) ( d q − 1 ) respectively [12]. Blowing up each vertex to a clique of size h replaces an eigenvalue ν of the base rook graph by ν h + ( h − 1 ) , and contributes the internal eigenvalue − 1 with multiplicity h − 1 per cell. Substituting the four base eigenvalues gives the stated values.    □
The full graph G n k ( { p , q } ) additionally contains the degenerate blocks, whose sizes differ from h. Their adjacency to the main grid follows the same rook pattern on an extended ( d p + 1 ) × ( d q + 1 ) grid; the precise statement is given in Remark 6. Since G 0 is an induced subgraph of the connected graph G, the Perron value of G strictly exceeds ρ ( G 0 ) .

3.3. Clique Number, Chromatic Number, Domination Number

We record three further invariants that follow directly from the block structure.
Proposition 2
(Clique number). The clique number of G n k ( { p , q } ) is
ω ( G ) = max max i a q , i + ∑ j n i j , max j a p , j + ∑ i n i j , a 0 + max ∑ j a p , j , ∑ i a q , i .
Proof. 
A clique cannot contain vertices from two main blocks that differ in both row and column (Theorem 1(iv)). The largest main-block clique is therefore an entire row or column, of sizes ∑ j n i j and ∑ i n i j respectively. A block V 0 q , i is fully joined to row i, so a q , i + ∑ j n i j vertices form a clique; similarly V p 0 , j joins column j. Finally, V 00 joins all of V p 0 and all of V 0 q , but V p 0 and V 0 q are mutually non-adjacent, so the largest clique involving V 00 is V 00 ∪ V p 0 or V 00 ∪ V 0 q , of sizes a 0 + ∑ j a p , j and a 0 + ∑ i a q , i . Taking the maximum gives the formula.    □
Proposition 3
(Chromatic number). In the uniform-cell case ( p q ∣ n ), the main graph G 0 is perfect and
χ ( G 0 ) = ω ( G 0 ) = h max ( d p , d q ) .
Proof. 
The rook graph K d p □ K d q is the line graph of the complete bipartite graph K d p , d q : the vertices of L ( K d p , d q ) are the edges of K d p , d q , i.e., the pairs ( i , j ) , and two of them are adjacent precisely when the corresponding edges share an endpoint, i.e., when i = i ′ or j = j ′ , exactly the adjacency rule of K d p □ K d q [12,17]. The rook graph is perfect (being the line graph of a bipartite graph), with chromatic number max ( d p , d q ) (an edge-coloring of K d p , d q ). A proper coloring of the base rook graph with max ( d p , d q ) colors lifts to a coloring of G 0 with h max ( d p , d q ) colors, by assigning each cell h private colors within its base color class; conversely χ ( G 0 ) ≥ ω ( G 0 ) = h max ( d p , d q ) . Clique blow-ups preserve perfection, so χ ( G 0 ) = ω ( G 0 ) = h max ( d p , d q ) .    □
Proposition 4
(Domination number). Under the standing assumption p q < n ,
γ ( G n k ( { p , q } ) ) ≤ min ( d p , d q ) + 1 .
Proof. 
Assume without loss of generality that d p ≤ d q . Place one dominator in each main block C i , 1 for 1 ≤ i ≤ d p (i.e., the entire first column), and one additional dominator in V 00 . We verify that every vertex is dominated:
  • Every main block C i j shares row i with C i , 1 , hence every vertex of C i j is adjacent to the dominator in C i , 1 .
  • Every V 0 q , i is fully joined to row i, hence adjacent to the dominator in C i , 1 .
  • Every V p 0 , j is fully joined to V 00 , hence adjacent to the dominator in V 00 .
  • The block V 00 is dominated by its own dominator.
The total number of dominators is d p + 1 = min ( d p , d q ) + 1 ; under the standing assumption p q < n every block is non-empty by Theorems 2 and 4, so the dominators can indeed be placed. The case d q < d p is symmetric, using the first row instead of the first column.    □
Remark 4
(Eulerian property). The graph is Eulerian precisely when all vertex degrees deg L share the same parity. From the degree formulas in Section 3.1 this is a congruence condition on n , p , q , k ; e.g., in the n = 30 example below the degrees are 19 , 24 , 19 , 24 , which are not all of one parity, so the graph is not Eulerian.

3.4. Automorphism Group

The main graph G 0 is the blow-up of the rook graph R d p , d q = K d p □ K d q (Theorem 1). The automorphism group of the Cartesian product K m □ K n is S m × S n (row and column permutations), with an additional Z 2 factor (grid transposition) when m = n [12].
Proposition 5.
Assume the uniform-cell hypothesis p q ∣ n , so that all n i j = h , and d p , d q ≥ 2 . Then
Aut ( G 0 ) ≅ S h wr S d p × S d q ≅ ( S h ) d p d q ⋊ S d p × S d q ,
of order ( h ! ) d p d q d p ! d q ! , with an additional factor Z 2 (grid transposition) when d p = d q .
Proof. 
The h vertices within each cell C i j have identical neighborhoods and may be permuted independently, so ( S h ) d p d q embeds in Aut ( G 0 ) as a normal subgroup. Conversely, for d p , d q ≥ 2 the rook graph K d p □ K d q has no true twins: distinct vertices have distinct closed neighborhoods. Hence the cells C i j are precisely the maximal classes of pairwise indistinguishable vertices, and every automorphism permutes the cells. The induced action on the grid is an automorphism of K d p □ K d q , i.e., an element of S d p × S d q , together with the grid transposition when d p = d q . The group is therefore the wreath product as stated.    □
Remark 5
(The cases d p = 1 or d q = 1 ). If d q = 1 (and symmetrically for d p = 1 ), any two cells share the unique column and are therefore fully joined; since each cell is a clique, G 0 is the complete graph K d p h on d p h vertices and
Aut ( G 0 ) ≅ S d p h , | Aut ( G 0 ) | = ( d p h ) ! ,
which is strictly larger than ( h ! ) d p d p ! , the value the wreath-product formula of Proposition 5 would suggest: the extra joins destroy the cell structure as a system of blocks of imprimitivity, so arbitrary permutations of all d p h vertices become available. When d p = d q = 1 , G 0 ≅ K h and Aut ( G 0 ) ≅ S h . When the cell sizes are unequal (e.g., the n = 20 example), only the permutations within each cell and the row/column permutations preserving the size pattern ( n i j ) survive, and the automorphism group shrinks accordingly; when d p = 1 or d q = 1 , the corresponding factor S d p or S d q is trivial, and only the other direction contributes.
Remark 6.
The quotient graph of the full partition P is itself a rook graph K d p + 1 □ K d q + 1 : placing V 00 at the grid point ( 0 , 0 ) , V p 0 , j at ( 0 , j ) , V 0 q , i at ( i , 0 ) and C i j at ( i , j ) , two blocks are fully joined exactly when their grid points share a row or a column, and have no edges otherwise (Theorems 1 and 3). This extended grid, rather than the main graph G 0 itself, is the origin of the dimensions d p + 1 and d q + 1 in the quotient matrix.

3.5. Relation to Cayley Graphs

A graph on Z n is a Cayley graph if its adjacency is invariant under translation: a ∼ b ⇒ a + t ∼ b + t for all t. The single-prime power congruence graph decomposes into cliques on the fibers of the k-th power map, i.e., the sets { a : a k ≡ u i ( mod p ) } , each of which is a coset of ker ( ϕ p ) in ( Z / p Z ) × ; being complete on c p vertices, each such clique is isomorphic to a Cayley graph on the additive group Z c p .
In the two-prime setting, the full graph G n k ( { p , q } ) is not a Cayley graph in general. A Cayley graph is vertex-transitive, but the degree formulas show that vertices in different blocks have different degrees: for instance deg V 00 = ( a 0 − 1 ) + ∑ j a p , j + ∑ i a q , i differs from deg C i j in general (concretely, 19 ≠ 24 in the n = 30 example of Section 4.1). At the level of the defining relation, the translation action a ↦ a + t does not preserve the partition by k-th power residues, because ( a + t ) k ≢ a k + t k in general, and the zero residue classes modulo p and q defining V 00 , V p 0 , * , V 0 q , * are not translation invariant. This is consistent with Proposition 5: the cells C i j form a system of blocks of imprimitivity for Aut ( G 0 ) rather than cosets of a regular subgroup.
In the extreme case d p = d q = 1 , i.e., p − 1 ∣ k and q − 1 ∣ k (note that d p , d q ≥ 1 by definition), the main graph G 0 reduces to the single clique C 11 and is Cayley. The full graph, however, is still not Cayley in general, since V 00 has no edges to V 000 (Theorem 3(iii)).

3.6. Diameter and Independence Number

We record two further graph-theoretic invariants that follow directly from the block structure.
Proposition 6
(Diameter). Under the standing assumption p q < n , the graph G n k ( { p , q } ) has diameter
diam ( G ) = 2 .
Proof. 
We exhibit a walk of length at most 2 between any two vertices.
  • Two vertices in the same block: distance 1 (every block is a clique).
  • Vertices in blocks joined directly by Theorem 1 or Theorem 3: distance 1.
  • A vertex a ∈ C i j and a vertex b ∈ C i ′ j ′ with i ≠ i ′ , j ≠ j ′ : a ∼ c ∈ C i j ′ ∼ b , distance 2.
  • A vertex in V 00 and a vertex in C i j : V 00 ∼ V p 0 , j ∼ C i j , distance 2.
  • A vertex in V p 0 , j and a vertex in V 0 q , i : V p 0 , j ∼ C i j ∼ V 0 q , i , distance 2.
  • A vertex in V p 0 , j and a vertex in C i ′ j ′ with j ≠ j ′ : V p 0 , j ∼ C i ′ j ∼ C i ′ j ′ , distance 2.
  • The remaining pairs are symmetric to one of the above.
Since V 00 is not adjacent to any C i j (Theorem 3(iii)), the graph is not complete, so the diameter is exactly 2.    □
Proposition 7
(Independence number). Under the standing assumption p q < n ,
α ( G n k ( { p , q } ) ) = min ( d p , d q ) + 1 .
Proof. 
Each block is a clique, so an independent set contains at most one vertex from each block. Within the main rook blow-up, two selected blocks must share neither a row nor a column; hence at most min ( d p , d q ) main blocks contribute, giving a rook-graph independent set of size min ( d p , d q ) . The vertex 0 ∈ V 00 is adjacent to no block C i j (Theorem 3(iii)), so one additional vertex may be chosen from V 00 , giving the lower bound α ( G ) ≥ min ( d p , d q ) + 1 .
For the upper bound, let S be an independent set. If S contains a vertex of V 00 , then it contains no vertex of V p 0 or V 0 q , and its intersection with V 000 is an independent set of the rook blow-up of size at most min ( d p , d q ) . If S contains no vertex of V 00 , then it may contain at most one vertex from V p 0 (which occupies one column) and at most one from V 0 q (which occupies one row); the remaining main blocks form a ( d p − 1 ) × ( d q − 1 ) rook graph, contributing at most min ( d p − 1 , d q − 1 ) . The total is at most
2 + min ( d p − 1 , d q − 1 ) = min ( d p , d q ) + 1
(when d p ≤ d q this is 2 + d p − 1 = d p + 1 ; the other case is symmetric). Combining both cases gives α ( G ) ≤ min ( d p , d q ) + 1 .    □
As a check, in the worked example of Section 4.1 we have d p = d q = 1 , so α ( G ) = 2 : indeed, one may choose one vertex from V 00 and one from C 11 , and no larger independent set exists.

3.7. Algebraic Connectivity

The algebraic connectivity (Fiedler value) λ 2 ( G ) is the second smallest Laplacian eigenvalue. By Theorem 6, the internal Laplacian eigenvalues are deg L + 1 with multiplicity | L | − 1 on each block L, and the remaining Laplacian eigenvalues come from the quotient matrix L B ; hence
λ 2 ( G ) = min λ 2 ( L B ) , min L ∈ P ( deg L + 1 ) .
Fiedler’s inequality λ 2 ( G ) ≤ δ ( G ) [13,18] gives, for every block L,
deg L + 1 > deg L ≥ min L ′ deg L ′ = δ ( G ) ≥ λ 2 ( G ) ,
in which the first inequality is strict because deg L + 1 exceeds deg L by exactly 1. Hence every internal Laplacian eigenvalue deg L + 1 is strictly larger than λ 2 ( G ) , and the minimum is always attained by the quotient eigenvalue:
λ 2 ( G ) = λ 2 ( L B ) .
When c p = c q = 1 and p q ∣ n , every block has size t = n / ( p q ) , a vertex of block L has degree t ( deg grid L + 1 ) − 1 , and B = t A ( K d p + 1 □ K d q + 1 ) + ( t − 1 ) I ; hence L B = t L ( K d p + 1 □ K d q + 1 ) , t times the Laplacian of the extended rook grid of Remark 6, and exactly
λ 2 ( G ) = t min ( d p + 1 , d q + 1 ) = n p q min ( d p + 1 , d q + 1 ) .

4. Worked Examples

4.1. Worked Example: n = 30 , p = 2 , q = 3 , k = 2

Here c p = 1 , d p = 1 , c q = 2 , d q = 1 , and n = 5 · 6 + 0 . The four blocks are
V 00 = { 0 , 6 , 12 , 18 , 24 } , V p 0 = { 2 , 4 , 8 , 10 , 14 , 16 , 20 , 22 , 26 , 28 } ,
V 0 q = { 3 , 9 , 15 , 21 , 27 } , C 11 = { 1 , 5 , 7 , 11 , 13 , 17 , 19 , 23 , 25 , 29 } ,
with sizes a 0 = 5 , a p , 1 = 10 , a q , 1 = 5 , n 11 = 10 . The degrees are 19 , 24 , 19 , 24 respectively. The quotient matrix, with rows and columns ordered as V 00 , V p 0 , V 0 q , C 11 , is
B = 4 10 5 0 5 9 0 10 5 0 4 10 0 10 5 9 .
Its eigenvalues are
14 + 5 3 , − 1 + 5 2 , 14 − 5 3 , − 1 − 5 2 .
The value − 1 occurs with multiplicity ( 5 − 1 ) + ( 10 − 1 ) + ( 5 − 1 ) + ( 10 − 1 ) = 26 . The Laplacian quotient matrix
L B = 15 − 10 − 5 0 − 5 15 0 − 10 − 5 0 15 − 10 0 − 10 − 5 15
has eigenvalues 0 , 15 , 15 , 30 . Together with the internal Laplacian eigenvalues 20 (multiplicity 8) and 25 (multiplicity 18), the Kirchhoff index is
Kf ( G ) = 30 2 15 + 1 30 + 8 20 + 18 25 = 30 · 193 150 = 193 5 ,
and the graph energy is
E ( G ) = ( 14 + 5 3 ) + ( 5 2 − 1 ) + ( 14 − 5 3 ) + ( 1 + 5 2 ) + 26 = 54 + 10 2 .
Finally, the Estrada index evaluates in closed form to
EE ( G ) = e 14 + 5 3 + e 14 − 5 3 + e − 1 + 5 2 + e − 1 − 5 2 + 26 e − 1 ≈ 6.938 × 10 9 .
The connection diagram of this worked example, showing the four blocks V 00 , V p 0 , V 0 q and C 11 and their gluing, is depicted in Figure 2.
Figure 2. Block connection diagram for the worked example n = 30 , p = 2 , q = 3 , k = 2 ( d p = d q = 1 ). Each circle represents a clique; edges denote that every vertex in one clique is adjacent to every vertex in the other. The block V 00 has no edge to C 11 . Since d p = d q = 1 in this example, V p 0 = V p 0 , 1 and V 0 q = V 0 q , 1 .

4.2. Example with a Non-Trivial Remainder: n = 20 , p = 3 , q = 5 , k = 2

This example illustrates the residue correction terms ρ when n is not a multiple of p q . Here p q = 15 and n = 20 = 1 · 15 + 5 , so t = 1 , s = 5 . We have c p = gcd ( 2 , 2 ) = 2 , d p = 1 , and c q = gcd ( 2 , 4 ) = 2 , d q = 2 . The images are Im ( ϕ 3 ) = { 1 } and Im ( ϕ 5 ) = { 1 , 4 } .
In the complete period 0 ≤ a < 15 each main block has c p c q = 4 vertices, each V p 0 , j has c q = 2 vertices, and V 0 q , 1 has c p = 2 vertices. The remaining five residues 15 ≤ a < 20 contribute the correction terms
ρ 1 , 1 ( 5 ) = 2 , ρ 1 , 2 ( 5 ) = 1 , ρ 1 ( p ) ( 5 ) = 0 , ρ 2 ( p ) ( 5 ) = 1 , ρ 1 ( q ) ( 5 ) = 0 .
The actual blocks are
V 00 = { 0 , 15 } , V p 0 , 1 = { 6 , 9 } , V p 0 , 2 = { 3 , 12 , 18 } , V 0 q , 1 = { 5 , 10 } ,
C 11 = { 1 , 4 , 11 , 14 , 16 , 19 } , C 12 = { 2 , 7 , 8 , 13 , 17 } .
The block sizes and vertex degrees are
L V 00 V p 0 , 1 V p 0 , 2 V 0 q , 1 C 11 C 12 | L | 2 2 3 2 6 5 deg L 8 12 11 14 14 15
The quotient matrix, with rows and columns ordered as V 00 , V p 0 , 1 , V p 0 , 2 , V 0 q , 1 , C 11 , C 12 to match the table above, is
B = 1 2 3 2 0 0 2 1 3 0 6 0 2 2 2 0 0 5 2 0 0 1 6 5 0 2 0 2 5 5 0 0 3 2 6 4 .
Its characteristic polynomial is
χ B ( x ) = x 6 − 14 x 5 − 25 x 4 + 448 x 3 − 69 x 2 − 3090 x + 3197 ,
The polynomial χ B is irreducible over Q (it has no rational root and no factor of degree 2 or 3 over Q ; by Gauss’s lemma both are finite checks among the candidate integer factorizations), so its roots admit no simpler closed form; its largest root is the Perron value. The internal eigenvalue − 1 has multiplicity 14. The Kirchhoff index and graph energy are
Kf ( G ) = 3278468 109629 , E ( G ) = 14 + ∑ χ B ( λ ) = 0 | λ | .
This example shows that the correction terms ρ do not vanish when s > 0 , and that the quotient-matrix method still handles them directly without any modification.

4.3. Non-Trivial Example: n = 100 , p = 3 , q = 7 , k = 3

Here c p = gcd ( 3 , 2 ) = 1 , d p = 2 , and c q = gcd ( 3 , 6 ) = 3 , d q = 2 . The images are Im ( ϕ 3 ) = { 1 , 2 } and Im ( ϕ 7 ) = { 1 , 6 } . Write n = 4 · 21 + 16 . The nine blocks have sizes
L V 00 V p 0 , 1 V p 0 , 2 V 0 q , 1 V 0 q , 2 C 11 C 12 C 21 C 22 | L | 5 14 15 5 5 14 14 15 13
and the vertex degrees are
( deg L ) = ( 43 , 62 , 60 , 42 , 42 , 61 , 60 , 60 , 61 ) .
The quotient matrix B (ordered as in the size table) is
B = 4 14 15 5 5 0 0 0 0 5 13 15 0 0 14 0 15 0 5 14 14 0 0 0 14 0 13 5 0 0 4 5 14 14 0 0 5 0 0 5 4 0 0 15 13 0 14 0 5 0 13 14 15 0 0 0 15 5 0 14 13 0 13 0 14 0 0 5 14 0 14 13 0 0 15 0 5 0 14 15 12 .
Its Perron value is the largest root of the characteristic polynomial of the displayed matrix B, and the internal value − 1 has multiplicity 91. The non-zero eigenvalues μ 2 , … , μ 9 of L B admit no closed form, but the sum ∑ ℓ = 2 9 1 / μ ℓ entering the Kirchhoff index can be computed exactly without solving for them: if
χ L B ( x ) = x ∏ ℓ = 2 9 ( x − μ ℓ ) = x 9 − e 1 x 8 + e 2 x 7 − ⋯ + ( − 1 ) 8 e 8 x ,
then Vieta’s formulas give ∏ ℓ = 2 9 μ ℓ = e 8 and ∑ ℓ = 2 9 ∏ k ≠ ℓ μ k = e 7 , hence
∑ ℓ = 2 9 1 μ ℓ = e 7 e 8 ,
where e 7 and e 8 are obtained from L B by exact integer arithmetic (Faddeev–LeVerrier, or fraction-free Gaussian elimination on x I − L B ), so no numerical root-finding is involved. This gives ∑ ℓ = 2 9 1 / μ ℓ = 11665976797 / 64357379400 ; for transparency, the eigenvalues themselves are approximately
32.089 , 33.067 , 33.554 , 34.585 ,
57.312 , 57.721 , 75.493 , 76.181 ,
and their reciprocals sum to 0.18127 … . The internal contribution is ∑ L ( | L | − 1 ) / ( deg L + 1 ) = 175660897 / 112699818 , a direct rational computation from the block table. The Kirchhoff index is therefore
Kf ( G ) = 100 11665976797 64357379400 + 175660897 112699818 ≈ 173.993 ,
and the graph energy is
E ( G ) = 91 + ∑ λ ∈ spec ( B ) | λ | .
This example demonstrates that the quotient matrix remains small even when d p = d q = 2 : the full 100 × 100 adjacency matrix is reduced to a 9 × 9 computation.
The structural and spectral invariants of the three worked examples are collected and compared in Table 2.
Table 2. Comparison of the three worked examples.

5. Asymptotics and Discussion

5.1. Asymptotic Spectral Radius

As n → ∞ with p , q , k fixed and p q ∣ n , Theorems 2 and 4 give the asymptotic block sizes
n i j ∼ c p c q n p q , a p , j ∼ c q n p q , a q , i ∼ c p n p q , a 0 ∼ n p q .
Hence every entry of B satisfies B L L ′ = n p q ( B 0 ) L L ′ + O ( 1 ) as n → ∞ , where B 0 is the fixed quotient matrix of the weighted extended rook grid K d p + 1 □ K d q + 1 of Remark 6 with cell weights
w ( 0 , 0 ) = 1 , w ( i , 0 ) = c p , w ( 0 , j ) = c q , w ( i , j ) = c p c q ,
that is, ( B 0 ) L L = w ( L ) and ( B 0 ) L L ′ = w ( L ′ ) when L , L ′ share a row or a column. In fact, under the present assumption p q ∣ n , the O ( 1 ) remainder is exact. Writing t = n / ( p q ) and comparing entries gives the matrix identity
B = t B 0 − I ,
because B L L = | L | − 1 = t w ( L ) − 1 on the diagonal and, for fully joined blocks, B L L ′ = | L ′ | = t w ( L ′ ) . Since B is similar to the symmetric matrix S T A S (Section 3.1), the spectrum of B is { t ν − 1 : ν ∈ spec ( B 0 ) } , and the Perron root satisfies the exact formula
λ 1 G n k ( { p , q } ) = n p q ρ ( B 0 ) − 1 ( p q ∣ n ) ,
in which the error term is identically − 1 (so O ( 1 ) is trivially attained and sharp). For general n (not necessarily a multiple of p q ), writing B = n p q B 0 + E with uniformly bounded residue corrections E and conjugating by D = diag ( | L | ) gives the symmetric matrix C = S T A S = n p q C 0 + F ; the size m = ( d p + 1 ) ( d q + 1 ) is fixed and the ratios | L ′ | / | L | are bounded away from 0 and ∞, so ∥ F ∥ = O ( 1 ) , and Weyl’s inequality yields
λ 1 G n k ( { p , q } ) = n p q ρ ( B 0 ) + O ( 1 ) ,
where ρ ( B 0 ) depends only on p , q , k . For instance, in the n = 100 example ( c p = 1 , c q = 3 ) the Perron value of B agrees with 100 21 ρ ( B 0 ) up to an O ( 1 ) difference (as 21 ∤ 100 , the exact identity B = t B 0 − I does not apply here). In the special case c p = c q = 1 all block sizes are exactly n / ( p q ) , so B 0 = A ( K d p + 1 □ K d q + 1 ) + I and ρ ( B 0 ) = ( d p + 1 ) + ( d q + 1 ) − 2 + 1 = d p + d q + 1 , giving the exact closed form
λ 1 ( G ) = ( d p + d q + 1 ) n p q − 1 ( c p = c q = 1 , p q ∣ n ) .
This linear growth contrasts with the single-prime graph, whose components are cliques of size n / p and hence Perron value n / p − 1 . The two-prime graph spreads the edges over a connected rook grid rather than isolating d p + 1 cliques.

5.2. Replacing { p , q } by the Composite Modulus p q

One may ask what happens if the moduli set is the single composite integer p q rather than the two primes p , q separately. By the Chinese Remainder Theorem,
a k ≡ b k ( mod p q ) ⇔ a k ≡ b k ( mod p ) and a k ≡ b k ( mod q ) .
Thus the graph G n k ( { p q } ) has the adjacency relation
a ∼ b ⇔ a k ≡ b k ( mod p ) and a k ≡ b k ( mod q ) ,
whereas our graph G n k ( { p , q } ) uses the weaker condition
a ∼ b ⇔ a k ≡ b k ( mod p ) or a k ≡ b k ( mod q ) .
Therefore G n k ( { p q } ) is a spanning subgraph of G n k ( { p , q } ) : two vertices are adjacent in the composite-modulus graph only if they agree in both power-residue coordinates, which means they lie in the same block C i j . Hence G n k ( { p q } ) decomposes into the disjoint union of the cliques C i j (plus the degenerate blocks), with no row or column joins. This recovers the disconnected-union-of-cliques phenomenon of the single-prime case, now with ( d p + 1 ) ( d q + 1 ) cliques instead of d p + 1 . The connected rook blow-up structure is therefore a consequence of the disjunction (or) across two moduli, rather than of the composite modulus p q alone.
The block decomposition derived above has several practical consequences.
  • Computational complexity. A naive spectral computation on the full n-vertex adjacency matrix costs O ( n 3 ) . The equitable partition reduces this to a quotient matrix of size ( d p + 1 ) ( d q + 1 ) plus O ( n ) work to collapse each block. Since d p ≤ p − 1 and d q ≤ q − 1 , the quotient matrix has size O ( p q ) , independent of n. The total cost is therefore dominated by the O ( n ) degree-vector construction plus O ( ( p q ) 3 ) spectral work, a speed-up of order O ( n 3 / ( p q ) 3 ) over the naive approach. This is consistent with the observation of [11] that block decomposition accelerates spectral computations for congruence graphs.
  • Network symmetry and modular clustering. The rook graph blow-up exhibits a high degree of structural symmetry: rows and columns of the grid are interchangeable under relabeling of the image points u i and v j . In a network setting, the blocks C i j correspond to tightly knit clusters (cliques), and the row/column joins correspond to dense inter-cluster links. The independence number min ( d p , d q ) + 1 gives the maximum size of a set of mutually non-adjacent nodes, which is relevant to placement of monitoring or intrusion-detection points.
  • Cryptographic interpretation. The adjacency relation groups vertices by the image of the k-th power map rather than by its preimage. The connectivity of the two-prime graph, in contrast to the disconnected single-prime graph, means that any two residues are linked through a chain of power-equivalence relations modulo one of the two primes; this may be relevant when analyzing the mixing properties of hash-based identification protocols built on modular exponentiation.

6. Concluding Remarks

Replacing a single prime power hierarchy { p , p 2 , … , p t } by two distinct primes { p , q } changes the power congruence graph from a disconnected union of cliques into a connected rook graph blow-up. The main technical achievements of the paper are: (i) a complete structural description: the CRT block decomposition C i j , explicit block sizes including the residue corrections ρ when p q ∤ n (Theorems 2 and 4), and the gluing of the three degenerate classes V 00 , V p 0 , j , V 0 q , i to the main grid (Theorem 3); (ii) a spectral reduction: the adjacency and Laplacian spectra, and with them the Kirchhoff, Estrada and Laplacian–Estrada indices, the graph energy and the spanning-tree count, are determined by a quotient matrix of size ( d p + 1 ) ( d q + 1 ) (Theorems 5 and 6, Corollaries 7 and 8), with the exact spectral radius λ 1 = n p q ρ ( B 0 ) − 1 in the uniform-cell case (Section 5.1); (iii) exact global invariants: algebraic connectivity, clique, chromatic, domination and independence numbers, diameter 2, and the automorphism group. We emphasize that the construction itself (CRT decomposition, rook blow-up, equitable partition, small quotient matrix) is the paper’s principal contribution: it is a clean instance of the symmetry-exploitation pipeline used to analyze complex symmetric networks, and it is the source of every closed formula above.
We close by outlining several natural directions for further work.
(i) 
Three or more prime moduli. For a moduli set { p 1 , … , p r } with r ≥ 3 , CRT identifies the non-degenerate vertices with tuples in ∏ i ( Z / p i Z ) × , and the image of the k-th power map splits this product into ∏ i d p i blocks. Two blocks are joined whenever their coordinates agree in at least one modulus; this is the r-dimensional analogue of a rook graph, sometimes called a generalized rook graph. The equitable partition argument survives verbatim, but the quotient matrix grows to size ∏ i ( d p i + 1 ) , and the internal eigenvalue is still − 1 on each clique. The case r = 2 admits exact spectral formulas precisely because the block-adjacency graph is a Cartesian product, K d p + 1 □ K d q + 1 , whose adjacency matrix is the Kronecker sum A ⊗ I + I ⊗ A , with spectrum { ν i + ν j } . For r ≥ 3 this structure breaks down: if two tuples agree in two coordinates, the natural sum ∑ i T i of the coordinate-cylinder adjacency matrices T i = I ⊗ ⋯ ⊗ A K d p i + 1 ⊗ ⋯ ⊗ I counts the pair twice, and an inclusion–exclusion correction destroys the Kronecker-sum form: two blocks can agree in two coordinates simultaneously, so the adjacency pattern is no longer a simple Cartesian product. Exact eigenvalue formulas beyond r = 2 are an open question. Two partial structures are available: in the uniform-cell case the block adjacency is determined by the set of coordinates in which two tuples agree, so it belongs to a natural association scheme generated by the “agreement in coordinate i” operators, whose spectrum is computable from the scheme’s parameters; and when all d p i are equal, the generalized rook graph is a common refinement of quotients of the Hamming scheme.
(ii) 
Composite moduli and prime powers. The present paper treats two primes p , q . The next case is replacing one prime by a prime power, say M = { p , q e } with e ≥ 2 . The ring ( Z / q e Z ) × is no longer cyclic when q = 2 , e ≥ 3 , so the image of the k-th power map must be described through its 2-primary and odd components separately. This changes the number of image points and hence the grid dimensions d q , but the structural argument (CRT decomposition, clique blocks, equitable partition) should remain intact.
(iii) 
Directed power congruence graphs. Throughout we used the undirected condition a k ≡ b k ( mod m ) . The directed version, a → b iff a k ≡ b ( mod m ) , is the classical power digraph studied by Somer–Křížek and others. The two-moduli directed version composes two functional graphs; their interaction under CRT is substantially more complex because edges are no longer symmetric, and spectral analysis must use the Jordan decomposition of the non-symmetric adjacency matrix rather than the real symmetric spectrum used here.
(iv) 
Uniform-cell limit and graph energy asymptotics. When n is a multiple of p q , all cells C i j have equal size t c p c q , so the main rook blow-up has uniform cell sizes. In this uniform-cell case the Perron eigenvalue of the main rook blow-up admits a closed form. The full graph is not regular, because the degenerate blocks V 00 , V p 0 , j , V 0 q , i have different sizes; nevertheless both the energy and the Kirchhoff index grow linearly in n: the number of blocks is fixed, each non-zero quotient eigenvalue is Θ ( n ) , each internal Laplacian eigenvalue deg L + 1 is Θ ( n ) while the internal adjacency eigenvalue is − 1 , so E ( G ) = Θ ( n ) and Kf ( G ) = n O ( 1 / n ) + O ( 1 ) = Θ ( n ) . Characterizing the asymptotic regime as n → ∞ with p , q , k fixed would connect the present spectral formulas to the broader literature on graph energy asymptotics.
(v) 
Generalized k. We fixed k globally. An interesting variant allows a modulus-dependent exponent k p , k q , so that adjacency requires a k p ≡ b k p ( mod p ) or a k q ≡ b k q ( mod q ) . The image dimensions d p i = ( p i − 1 ) / gcd ( k i , p i − 1 ) then differ by modulus, and the CRT pairing restricts to a d p × d q grid whose two sides are no longer controlled by the same exponent. The equitable partition argument still applies, but the quotient matrix loses the symmetry exploited in the n = 30 example.
Algebraic-geometric perspective. The dimensions d p = ( p − 1 ) / gcd ( k , p − 1 ) also have a natural interpretation outside graph theory: d p is the index of the image of the k-th power map in the cyclic group ( Z / p Z ) × , and subgroups of index dividing k in cyclic groups are the Galois groups of the Kummer cyclic extensions from which cyclic branched covers of the projective line (superelliptic and generalized Fermat curves y k = f ( x ) ) are built. In this sense the d p × d q grid of image points is a discrete shadow of the period coordinate grids that arise for such covers and their Jacobians [19]. A dictionary from this combinatorial shadow to moduli spaces of curves, their compactifications, or their tropical stable reductions is not available at present; building even a partial one is an attractive direction for future work.

Funding

This research was funded by the Natural Science Foundation of Jiangsu Province (Grants No. BK20220790).

Data Availability Statement

No new data were created or analyzed in this study. Data sharing is not applicable to this article.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Somer, L.; Křížek, M. On a connection of number theory with graph theory. Czechoslov. Math. J. 2004, 54, 465–485. [Google Scholar] [CrossRef] [Scilit]
  2. Deng, G.; Yuan, P. Symmetric digraphs from powers modulo n. Open J. Discret. Math. 2011, 1, 103–107. [Google Scholar] [CrossRef]
  3. Malik, M.A.; Mahmood, M.K. On simple graphs arising from exponential congruences. J. Appl. Math. 2012, 2012, 292895. [Google Scholar] [CrossRef] [Scilit]
  4. Asif, S.; Mahmood, M.K.; Alali, A.S.; Zaagan, A.A. Structures and applications of graphs arising from congruences over moduli. AIMS Math. 2024, 9, 21786–21798. [Google Scholar] [CrossRef] [Scilit]
  5. Rogers, T.D. The graph of the square mapping on the prime fields. Discret. Math. 1996, 148, 317–324. [Google Scholar] [CrossRef] [Scilit]
  6. Lucheta, C.; Miller, E.; Reiter, C. Digraphs from powers modulo p. Fibonacci Quart. 1996, 34, 229–239. [Google Scholar] [CrossRef] [Scilit]
  7. Somer, L.; Křížek, M. Structure of digraphs associated with quadratic congruences with composite moduli. Discret. Math. 2006, 306, 2174–2185. [Google Scholar] [CrossRef] [Scilit]
  8. Somer, L.; Křížek, M. The structure of digraphs associated with the congruence xk ≡ y (mod n). Czechoslov. Math. J. 2011, 61, 337–358. [Google Scholar] [CrossRef] [Scilit]
  9. Chakrabarty, I.; Ghosh, S.; Sen, M.K. Undirected power graphs of semigroups. Semigroup Forum 2009, 78, 410–426. [Google Scholar] [CrossRef] [Scilit]
  10. Abawajy, J.; Kelarev, A.; Chowdhury, M. Power graphs: A survey. Electron. J. Graph Theory Appl. 2013, 1, 125–147. [Google Scholar] [CrossRef] [Scilit]
  11. Raza, M.A.; Mahmood, M.K.; Almutlg, A. Symmetry and structural analysis of power congruence graphs over a set of moduli. Symmetry 2026, 18, 582, Correction in Symmetry 2026, 18, 1296. https://doi.org/10.3390/sym18081296. [Google Scholar] [CrossRef] [Scilit]
  12. Biggs, N. Algebraic Graph Theory, 2nd ed.; Cambridge University Press: Cambridge, UK, 1993. [Google Scholar] [CrossRef] [Scilit]
  13. Merris, R. A survey of graph Laplacians. Linear Multilinear Algebra 1995, 39, 19–31. [Google Scholar] [CrossRef] [Scilit]
  14. Gutman, I.; Mohar, B. The quasi-Wiener and the Kirchhoff indices coincide. J. Chem. Inf. Comput. Sci. 1996, 36, 982–985. [Google Scholar] [CrossRef] [Scilit]
  15. Estrada, E. Characterization of 3D molecular structure. Chem. Phys. Lett. 2000, 319, 713–718. [Google Scholar] [CrossRef] [Scilit]
  16. de la Peña, J.A.; Gutman, I.; Rada, J. Estimating the Estrada index. Linear Algebra Appl. 2007, 427, 70–76. [Google Scholar] [CrossRef] [Scilit]
  17. Godsil, C.; Royle, G. Algebraic Graph Theory; Springer: New York, NY, USA, 2001. [Google Scholar] [CrossRef] [Scilit]
  18. Fiedler, M. Algebraic connectivity of graphs. Czechoslov. Math. J. 1973, 23, 298–305. [Google Scholar] [CrossRef] [Scilit]
  19. Malmendier, A.; Shaska, T. From hyperelliptic to superelliptic curves. Albanian J. Math. 2019, 13, 107–200. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.