A Generalization of Ramanujan's Sum over Finite Rings
In this paper, we introduce a generalization of Ramanujan sums over finite rings and derive an explicit formula for these sums. These generalized Ramanujan sums coincide with the eigenvalues of the unitary Cayley graph $\mathrm{Cay}(R,R^{\times})$, as follows from Babai's result on Cayley graph spectra. This provides a useful approach to determining the spectrum of the unitary Cayley graph. Moreover, under a certain independence condition on the maximal left ideals, we show that our formula extends the classical formula for Ramanujan sums to finite rings.