A solution to the Subbarao relation

Chris Nash

Abstract

In [1], Subbarao notes that the relation n ·s(n) = 2  mod f(n) holds for prime values of n, and also for n = 4,6,22. The existence of other composite solutions was not known. In a closely-related problem in [3], Carlos Rivera and Jud McCranie posed questions about the function z(n) = f(n)+s(n)-2n. A solution to the Rivera/McCranie problem is presented, then the Subbarao question is completely solved using properties of this function z(n).

1  Definitions

We define the function z(n) on positive integers n by
z(n)
=
f(n)+s(n)-2n
(1)

2  Solution of Carlos Rivera's Puzzle 76

z(n) ³ 0, with equality only holding if n = 1 or n is prime.

We first note the following relations which follow directly from the definitions of f(n) and s(n):
s(n)
=

å
d|n 
d
(2)
n
=

å
d|n 
f(d)
(3)
By applying the Möbius inversion formula to (3) we have
f(n)
=

å
d|n 
m(n/d) ·d
(4)
We note both (2) and (4) include a term for d = n that evaluates to n, and so we have the formula
z(n)
=
(f(n)-n) + (s(n)-n)
=
d < n
å
d|n 
m(n/d) ·d + d < n
å
d|n 
d
=
d < n
å
d|n 
(m(n/d)+1) ·d
(5)
Since each term in (5) is non-negative we conclude z(n) ³ 0. For equality to hold, either the sum must be empty, or each term must equal zero. An empty sum only occurs in the case n = 1, otherwise we require
m(n/d)
=
-1  " d|n,  d < n
(6)

In particular, this means n cannot have two or more distinct prime factors. If n had distinct prime factors p and q, choose d = n/pq and we have a contradiction with (6). Hence n must be a power of a prime.

Similarly, if n = pr for some r > 1, choose d = 1 and again we have a contradiction with (6).

Finally it is easy to demonstrate that, if n is prime, f(n) = n-1 and s(n) = n+1.

Hence z(n) = 0 if and only if n = 1, or n is prime.

3  The Subbarao relation

The Subbarao relation
n ·s(n)
=
2  mod f(n)
(7)
has no composite solutions except for n = 4,6,22.

We have, from (1),
s(n)
=
2n+z(n)  mod f(n)
and thus
n ·s(n)
=
n(2n+z(n))  mod f(n)
Let us assume n is composite and (7) is true. Then
2n2+nz(n)-kf(n)
=
2,
(8)
for some integer k. The proof now proceeds by cases.

It is immediately verified the Subbarao relation holds for all primes. Summarizing, the only composite numbers satisfying the Subbarao relation are n = 4,6,22.

References

[1]
Richard K. Guy, ``Unsolved Problems In Number Theory'', B37, p.92. (Springer-Verlag, New York, 1994).

[2]
E.Bach; J.Shallit: ``Algorithmic Number Theory''. (Foundation of Computer Science Series, MIT Press, 1996).

[3]
C. Rivera, J. McCranie: ``Puzzle 76. z(n)=sigma(n)+phi(n)-2n'', http://www.sci.net.mx/~crivera/puzzles/puzz_076.htm


File translated from TEX by TTH, version 2.60.
On 21 Dec 1999, 13:29.