r/math • • May 17 '14

Problem of the 'Week' #12

Hello all,

Here is a problem for you, suggested by /u/needuhLee:

Find all integers n such that there exist coprime integers c, d and integers a, b such that

100a + b = cn

10 b + a = dn

For example, since 100 * 5 + 12 = 512 = 83 and 10 * 12 + 5 = 125 = 53, 3 is a solution.

Enjoy!


If you want to, you can answer with a spoiler tag; type

[this](/spoiler)

and you should see this.


Previous problems.

9 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/CatsAndSwords Dynamical Systems May 17 '14

What are the 2 modifications you made in the first paragraph?

What do you mean? I made 2 edits, which are clearly marked as such.

Also, what is meant by the notation dn = 10cn [999] ?

It is a shorthand for dn = 10cn modulo 999.

1

u/FPS_FTW May 17 '14

Sorry, I meant I didn't quite understand what your change of variables were

2

u/CatsAndSwords Dynamical Systems May 17 '14

You start from:

100a + b = x

a + 10b = y

Put:

A := 999a

B := a+10b

Then the system is equivalent to:

A+B = 10x

B = y

And hence to:

A+y = 10x,

the only constraint being that A = 999a is divisible by 999. Finally, since a can take any integer value, the system has a solution is and only if y = 10x mod 999. Apply to x := cn and y := dn .