elementary-number-theoryAug 21, 2026

How to prove that x6n±1+1x6n±1x^{6n\pm1}+\frac{1}{x^{6n\pm1}} has the same units digit as x+1xx+\frac{1}{x}?

I
idrissbado
Member · Research discussion
Votes
2
Answers
1
Views
7
2

I came across the following problem: If x+1xx+\frac{1}{x} is an integer, prove that

x6n+1+1x6n+1 x^{6n+1}+\frac{1}{x^{6n+1}}

and

x6n−1+1x6n−1 x^{6n-1}+\frac{1} {x^{6n-1}}

have the same units digit as

x+1x, x+\frac{1}{x},

for every positive integer nn. Equivalently, I need to prove that

x6n±1+1x6n±1≡x+1x(mod10). x^{6n\pm1}+\frac{1}{x^{6n\pm1}} \equiv x+\frac{1}{x} \pmod{10}.

The only given condition is

x+1x∈Z. x+\frac{1}{x}\in\mathbb{Z}.

Importantly, xx itself is not necessarily an integer. I tried defining

Sk=xk+1xk. S_k=x^k+\frac{1}{x^k}.

Then, if

a=x+1x∈Z, a=x+\frac{1}{x}\in\mathbb{Z},

we have the recurrence

Sk+1=aSk−Sk−1. S_{k+1}=aS_k-S_{k-1}.

This shows that every SkS_k is an integer, but I am unable to prove the stronger result

S6n±1≡S1(mod10). S_{6n\pm1}\equiv S_1\pmod{10}.

What is the simplest way to prove this result?

Replies

1 answer
1
I
idrissbado
Research member
Aug 21, 2026

Define

Sk(x)=xk+1xkS_k(x)= x^k+\frac 1{x^k}

And set S1(x)=aS_1(x)= a. We remark that S2(x)=a2−2S_2(x)=a^2-2.

We have

Sk(x)=(xk−1+1xk−1)(x+1x)−(xk−2+1xk−2)S_k(x)= \left(x^{k-1}+\frac 1{x^{k-1}}\right)\left(x+\frac 1x\right)-\left(x^{k-2}+\frac 1{x^{k-2}}\right)

whence the recursion

Sk(x)=aSk−1−Sk−2S_k(x)= aS_{k-1}-S_{k-2}

Note: we really only care about this (mod10)\pmod {10}.

It's now a simple matter to check each value of a(mod10)a\pmod {10}. For instance, if a≡0(mod10)a\equiv 0 \pmod {10}, the Sk(x)(mod10)S_k(x)\pmod {10} are periodic with period 44 and the sequence they form is

{0,8,0,2}‾\overline {\{0,8,0,2\}}

(Note that all odd indexed numbers in the sequence end in 00 which is stronger than we need).

Similarly, if a≡1(mod10)a\equiv 1 \pmod {10} we get the periodic block

{1,9,8,9,1,2}‾\overline {\{1,9,8,9,1,2\}}

from which the relevant claim follows at once.

And similarly for the rest.

Your answer

You need a verified account to contribute. Create an account or log in to join the discussion.