Jump to content
BrainDen.com - Brain Teasers
  • 0


Guest
 Share

Question

2 answers to this question

Recommended Posts

  • 0

Algebraically

let the number formed by the expression be "k"

n2+1=kmn-k

n2-kmn=1-k

n(n-km)=1-k

(and since k is greater than or equal to 1, it'll be more helpful to multiply by -1)

n(km-n)=k-1

taking that in modulo n

0=k-1 (mod n)

1=k (mod n)

so k=1, 1+n, 1+2n, 1+3n....

Case 1

If k=1 then,

n2+1=mn-1

n(m-n)=2

If n=1, then m=3

If n=2, then m=3

Case 2

If k=1+n

n2+1=(1+n)(mn-1)

n2+1=mn2+mn-n-1

2=2(m-1)+n(m-1)

2=n(n+1)(m-1)

So if n=1, then m=3

n cannot be any other number because of the n(n+1) term

So if we continue with each case and use k=1+2n and k=1+3n and so on, we will eventually find all of the values.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...