Problem:
Find
all
positive
integers
n
such
that
n^2+1
is
divisible
by
n+1. Solution
[Fred's
-
Jun
99]: If
n+1
|
n^2
+
1
then
n^2
+
1
-
(n-1)(n+1)
=
n^2+1
-
(n^2-1)
=
2
must
be
divisible
by
n+1.
The
factors
of
2
are
'sumdiff(,1)
and
'sumdiff(,2).
These
values
for
n+1
yield
n
=
_3,
_2,
0
or
1.
Only
the
last,
n=1,
is
a
positive
integer
as
required. Solution
from
Book: There
is
only
one
such
positive
integer:
n=1.
In
fact,
n^2+1
=
n*(n+1)-(n-1);
thus,
if
n+1
|
n^2+1,
then
n+1
|
n-1
which
for
positive
integer
n
is
possible
only
if
n-1
=
0,
hence
n=1.
Problem:
Prove
that
there
exists
infinitely
many
positive
integers
n
such
that
4*(n^2)+1
is
divisible
both
by
5
and
13. Solution
[Fred's
-
Jun
99]: By
inspection
of
the
first
few
values
n=1,2,3,4,
'ellipsis
we
find
4*(4^2)+1
is
divisible
by
65
(hence
by
both
5
and
13).
Having
found
one
value,
consider
(the
infinitely
many)
numbers
of
the
form
n=65*k+4
where
k>=0;
when
these
are
squared,
the
result
is
of
the
form
n^2=65*j+4^2,
so
4*n^2+1=4*65*j+4^3+1=65*(4*j+1)
is
divisible
by
both
5
and
13
as
required. Solution
from
Book:
Problem:
Prove
that
for
positive
integers
n
we
have
169
|
3^(3*n+3)
-
26*n
-
7. Solution
[Fred's
-
Jun
99]: Use
induction.
Let
f(n)=3^(3*n+3)-26*n-27.
It's
easily
verified
that
169|f(_1)
and
169|f(0).
Consider
f(n+1)-f(n)
=
3^(3*n+6)-3^(3*n+3)-26
=
(3^(3*n+3))*(3^3-1)-26
=
26(3^(3*n+3)-1)
.
Since
'congmod(
3^(3*n+3)-1
=
3^(3*(n+1))-1
=
(3^3)^(n+1)-1,
1^(n+1)-1=0,
13)
,
we
have
169
|
(f(n+1)-f(n)).
Problem:
Prove
that
for
every
positive
integer
n
the
number
3
*
(1^5
+
2^5
+
'ellipsis
+
n^5)
is
divisible
by
1^3
+
2^3
+
'ellipsis
+
n^3. Solution
[Fred's
-
May
2001]:
Problem:
Find
all
integers
n
>
1
such
that
1^n
+
2^n
+
'ellipsis
+
(n-1)^n
is
divisible
by
n. Solution
[Fred's
-
May
2001]: Case
1:
When
n
is
odd,
say
n
=
2*k+1
for
k
>=
1,
Case
2a:
When
k
is
odd,
2*'Sum(j^n,j,1,k-1)
+
k^n
is
odd,
and
so
is
not
divisible
by
any
even
number,
including
n. Case
2a:
When
k
is
even,
say
k=2*m
,
n=4*m,
2*'Sum(j^n,j,1,k-1)
+
k^n
=
2*(1^n
+
2^n
+
'ellipsis
+
(2*m-1)^n)
+
(2*m)^n
=
2*(odd
+
even
+
'ellipsis
+
odd)
+
(2*m)^(4*m)
There
are
m
odd
terms
in
the
parenthesised
expression,
so
the
expression
has
the
form
2
*
odd
+
4
*
something,
which
is
not
divisible
by
4,
and
therefore
not
divisible
by
n
which
is
a
multiple
of
4.
Problem:
For
positive
integer
n,
find
which
of
the
two
numbers
a
subscript
n
=
2^(2*n+1)
-
2^(n+1)
+1
and
b
subscript
n
=
2^(2*n+1)
+
2^(n+1)
+1
is
divisible
by
5
and
which
is
not. Solution
[Fred's
-
May
2001]:
Problem:
Prove
that
for
every
positive
integer
n
there
exists
a
positive
integer
x
such
that
each
of
the
terms
of
the
infinite
sequence
x+1,
x^x+1,
x^(x^x)+1,
'ellipsis
is
divisible
by
n Solution
[Fred's
-
May
2001]: Since
n|x+1,
'congmod(x+1,
0,
n),
i.e.
'congmod(x,
_1,
n). Since
n|x^x+1,
'congmod(x^x+1,
0,
n),
i.e.
'congmod(x^x
=
(_1)^x,_1,n).
Since
'congmod((_1)^x,_1,n),
x
must
be
odd. So,
let
x
be
any
odd
integer
with
'congmod(x,
_1,
n).
There
are
an
infinite
number
of
such
x's.
Then
'congmod(x^(x^'ellipsis)
+
1,
(_1)^odd
+
1
=
0,
n) Solution
from
Book:
Problem:
Prove
that
there
exist
infinitely
many
positive
integers
n
such
that
for
every
even
x
none
of
the
terms
of
the
sequence
x^x+1,
x^(x^x)+1,
x^(x^(x^x))+1,
'ellipsis
is
divisible
by
n. Solution
[Fred's
-
May
2001]: If
x
is
even
then
all
of
the
terms
in
the
sequence
are
odd,
i.e.
not
divisible
by
any
even
number.
So,
for
any
(of
the
infinitely
many)
even
n,
none
of
the
terms
of
the
sequence
are
divisible
by
n
for
even
x. Solution
from
Book:
Problem:
Prove
that
for
positive
integer
n
we
have
n^2
|
(n+1)^n
-
1. Solution
[Fred's
-
May
2001]: 'congmod(n+1,n+1,n^2) 'congmod((n+1)^2,
n^2+2*n+1
=
2*n+1,n^2) 'congmod((n+1)^3,
2*n^2
+
2*n
+
n
+
1
=
3*n+1,n^2) If
'congmod((n+1)^k,
k*n+1,n^2)
(true
for
k=1,
2,
3) then
'congmod((n+1)^(k+1),
(k*n+1)*(n+1)
=
k*n^2+k*n+n+1
=
(k+1)*n+1,n^2), so
true
for
all
k.
So
'congmod((n+1)^(n)
-
1,
n*n
+
1
-
1
=
n^2
=
0,n^2) Solution
from
Book:
Problem:
Prove
that
for
positive
integer
n
we
have
(2^n-1)^2
|
2^((2^n-1)*n)
-
1. Solution
[Fred's
-
May
2001]: We
know
x^2
|
(x+1)^x
-
1
(problem
14).
Set
x
-
2^n-1.
Then (2^n-1)^2
|
(2^n-1+1)^(2^n-1)-1 (2^n-1)^2
|
(2^n)^(2^n-1)-1 (2^n-1)^2
|
2^(n*(2^n-1))-1
as
required. Solution
from
Book:
Problem:
Prove
that
there
exist
infinitely
many
positive
integers
n
such
that
n
|
2^n+1
;
find
all
such
prime
numbers. Solution
[Fred's
-
May
2001]: For
a
prime
p,
'congmod(a^(p-1),
1,
p)
if
gcd(a,p)
=
1
(Fermat's
Little
Theorem)
;
'congmod(2^(p-1),
1,
p)
for
all
odd
primes
p
;
'congmod(2^p
+
1,
2
*
1
+
1
=
3,
p).
So
n
|
2^n
+
1
for
prime
n
only
where
'congmod(3,
0,
n),
i.e.
only
for
n=3.
If
n
is
even,
it
doesn't
divide
2^n+1,
which
is
odd.
That
leaves
odd
composites.
Checking
the
first
few
values:
Hmm
...
I
suspect
3^k
|
2^(3^k)
+
1.
True
for
k
=
1,
2,
3.
If
true
for
k,
i.e.
'congmod(2^(3^k),
_1,
3^k),
say
2^(3^k)
=
m
*
3
^
k
-
1,
then
2^(3^(k+1))
=
2^(3^k*3)
=
(m*3^k-1)^3
=
m^3*3^(3*k)
-
3*m^2*3^(2*k)
+
3*m*3^k
-
1
=
3*3^k*('ellipsis
-
'ellipsis
+
'ellipsis)
-
1
=
3^(k+1)*('ellipsis
-
'ellipsis
+
'ellipsis)
-
1
'congmod(,_1,3^(k+1))
So
true
for
all
k
;
n
=
3^0,
3^1,
3^2,
'ellipsis
is
an
infinite
sequence
of
solutions,
as
required. Outstanding
problem:
What
are
all
solutions,
i.e.
what
(if
any)
are
the
remaining
composite
n
satisfying
n
|
2^n+1
? Solution
from
Book:
Problem:
Find
all
positive
integers
a
for
which
a^10+1
is
divisble
by
10. Solution
[Fred's
-
May
2001]: We
only
have
to
check
values
of
a
modulo
10.
If
a
is
even,
then
a^10+1
is
odd
and
not
divisible
by
a.
a
mod
10
a^10+1
mod
10
'sumdiff(,1)
1+1=2
'sumdiff(,3)
9+1=0
'sumdiff(,5)
6+1=0
So
the
answer
is
'congmod(a,
'sumdiff(,3),
10) Solution
from
Book:
Problem:
Prove
that
there
exist
infinitely
many
positive
integers
n
such
that
n|2^n+1. This
problem
is
a
subset
of
problem
16. Solution
[Fred's
-
May
2001]: This
problem
is
a
subset
of
problem
16. Solution
from
Book:
Problem:
Prove
that
if
a,
b,
c
are
any
integers,
and
n
is
an
integer
()
.gt
3,
then
there
exists
an
integer
k
such
that
none
of
the
numbers
k+a,
k+b,
k+c
is
divisibly
by
n. Solution
[Fred's
-
May
2001]: It's
just
as
easy
to
prove
a
generalization.
Let
x;1,
'ellipsis,
x;m
be
integers,
n
>
m.
Then
taking
the
x;i
modulo
n
yields
at
most
m
<
n
distinct
values.
Choose
a
value
j
such
that
for
any
i,
j
!=
x;i
modulo
n.
Set
k=_j.
Then
none
of
the
numbers
(x;1)+k,
(x;2)+k,
'ellipsis,
(x;m)+k
are
divisible
by
n. Solution
from
Book: