Steven Brown
Notes on Number Theory and Discrete Mathematics
Print ISSN 1310–5132, Online ISSN 2367–8275
Volume 32, 2026, Number 2, Pages 335–341
DOI: 10.7546/nntdm.2026.32.2.335-341
Full paper (PDF, 218 Kb)
Details
Authors and affiliations
48 rue Pottier, 78150 Le Chesnay Rocquencourt, France
Abstract
In 1963, Edward Spence published a proof of the following:
With
being Euler’s totient function, if
is an integer, and if
![]()
are the positive integers less than
, coprime with
, then

where
is the square-free part of
, and
is the number of prime factors of
.
Spence’s proof relies on an ingenious observation considering Nagell’s totient function.
Later in 1971, Lucien Van Hamme provided an alternative proof of the result using Fourier analysis and previous work from Hubert Delange in 1968. In this paper, I propose another proof of the formula using the reciprocity law for Dedekind sums. If the formula is of interest on its own, it also plays a role in the analysis of the distribution of the
as suggested by the work from Hubert Delange.
Keywords
- Spence formula
- Dedekind sums
- Arithmetical functions
2020 Mathematics Subject Classification
- 11A99
- 11F20
- 11A25
References
- Apostol, T. M. (1976). Introduction to Analytic Number Theory. Springer-Verlag, New York.
- Delange, H. (1968). Sur la distribution des fractions irréductibles de dénominateur
ou de dénominateur au plus égalà
. Hommage au Professeur Lucien Godeaux, 75–89. - Dickson, L. E. (1919). History of the Theory of Numbers, Vol. I. Chelsea, New York.
- Rademacher, H., & Grosswald, E. (1972). Dedekind Sums. The Carus Mathematical Monographs, Volume 16. American Mathematical Society, Washington, D.C.
- Sándor, J., & Crstici, B. (2004). Handbook of Number Theory, II. Springer Science & Business Media.
- Spence, E. (1963). Formulae for sums involving a reduced set of residues modulo
. Proceedings of the Edinburgh Mathematical Society, 13(4), 347–349. - Van Hamme, L. (1971). Sur une généralisation de l’indicateur d’Euler. Bulletins de l’Académie Royale de Belgique, 57(1), 805–817.
Manuscript history
- Received: 28 February 2026
- Revised: 24 May 2026
- Accepted: 30 May 2026
- Online First: 3 June 2026
Copyright information
Ⓒ 2026 by the Author.
This is an Open Access paper distributed under the terms and conditions of the Creative Commons Attribution 4.0 International License (CC BY 4.0).
Related papers
Cite this paper
Brown, S. (2026). A proof of Spence’s formula using the reciprocity law for Dedekind sums. Notes on Number Theory and Discrete Mathematics, 32(2), 335-341, DOI: 10.7546/nntdm.2026.32.2.335-341.
