Problem 1. For a positive integer N , let c1 < c2 < · · · < cm be all the positive integers smaller than N that are coprime to N . Find all N ≥ 3 such that
gcd(N, ci + ci+1)̸ = 1
for all 1 ≤ i ≤ m − 1.
Here gcd(a, b) is the largest positive integer that divides both a and b. Integers a and b are coprime if gcd(a, b) = 1.
SOLUTION 1
The answer is all even

and powers of
.
Checking:
When

is even,

is odd for all

so

and hence
.
When

is a power of
, 
is precisely all the numbers not divisible by
. As they alternate being
, we may deduce that

for all
, hence
.
Proof of necessity:
Now assume

is odd and not a power of
.
If
, then we choose
, and we have
,
, so
. We must have

as a result.
Assume there exists some other prime that divides
. Let

be the set of primes that divide

excluding
. By CRT there exists some number

with

such that
, 
for

and
.
Then we know that

and that
. A quick check yields that

thus

for some
. Now

which is not divisible by
. It is also not divisible by any other prime that divides
, thus it is coprime with
. We may conclude that no other primes can divide
, so we are done.
SOLUTION 2
We claim that the answer is all even positive integer and the power of
.
Notice that if
, then
is odd. That is
is an even integer.
For the power of
, note that
, hence 
Now, suppose
is an odd positive integer. Note that
, so
.
Consider a set of prime divisors of
,
for some positive integer
.
Wlog,
is the second smallest element in
. Consider the congruence
By CRT, these congruence has a unique solution
.
Note that
is coprime to
,
and
.
Hence, for some
,
and
.
We have
Since,
and
is the
smallest prime,
. So,
is coprime to
.
That is
. Hence, we are done.