Number Theory Problem: Finding an Integer n for 1+2+3+...+n to End in 13

AI Thread Summary
The discussion revolves around finding an integer n such that the sum of the first n integers, represented by the formula n(n+1)/2, ends with the last two digits 13. Participants have established that this condition translates to the equation n(n+1)/2 ≡ 13 (mod 100), and they are exploring various mathematical techniques, including congruences, to prove or disprove the existence of such an n. They suggest analyzing the sum modulo 4 and 25 to classify possible outcomes, noting that while the last digit can be 3, achieving the last two digits as 13 is more complex. The conversation emphasizes the need for a systematic approach to prove whether it is impossible or possible for certain values of n. Overall, the problem remains unsolved, inviting further exploration and mathematical reasoning.
d4rkwarrior
Messages
4
Reaction score
0

Homework Statement



Does there exist an integer n, such that 1+2+3+...+n, ends with the last two digits 13?

Homework Equations



1+2+3+...+n = n(n+1)/2

The Attempt at a Solution



I reached a conclusion that 1+2+3+...+n \equiv 13 (mod 100). Also the sum has to be greater than 100, but from here I am stuck. What do I do?
 
Physics news on Phys.org
d4rkwarrior said:

Homework Statement



Does there exist an integer n, such that 1+2+3+...+n, ends with the last two digits 13?

Homework Equations



1+2+3+...+n = n(n+1)/2

The Attempt at a Solution



I reached a conclusion that 1+2+3+...+n \equiv 13 (mod 100). Also the sum has to be greater than 100, but from here I am stuck. What do I do?

A quick check with Excel sure seems to imply that there is no such n, but maybe in the higher numbers... What math techniques are you supposed to be using for this proof/disproof?
 
You could begin with the last digit, this is easier to study. Afterwards, including the first digit should work in a similar way.
 
I am supposed to prove it by congruences, and by the way showing that it is impossible with last digit can't prove it's impossible with two, not even in a similar way. And I have to prove that it is IMPOSSIBLE or possible for certain values of n.
 
Since 100=2^25^2, you could check what happens in mod 4.

Which values will the sequence 1+...+n take in (mod 4)?? You can always write

1+2+3+4+5+...+n = 1+2+3+4+(4+1)+(4+2)+...

So can you give a full classification of the sequence in (mod 4)?

What about mod 25?
 
Last edited by a moderator:
d4rkwarrior said:
I am supposed to prove it by congruences, and by the way showing that it is impossible with last digit can't prove it's impossible with two, not even in a similar way. And I have to prove that it is IMPOSSIBLE or possible for certain values of n.
The last digit can be 3. But those occurences are quite limited, and you can verify that the last digits will never be 13 at those.
If the last digit would never be 3, this would be sufficient for the proof.
 
micromass said:
Since 100=2^25^2, you could check what happens in mod 4.

Which values will the sequence 1+...+n take in (mod 4)?? You can always write

1+2+3+4+5+...+n = 1+2+3+4+(4+1)+(4+2)+...

So can you give a full classification of the sequence in (mod 4)?

What about mod 25?

That is really cool. I learned something new today! :smile:
 
micromass; how can I continue from here? By using mod 4, the sum, S, will be:

S \equiv 0, 1, 2, 3 (mod 4). Also, 13 \equiv 1 (mod 4) How do I exclude the possibility of S \equiv 1 (mod 4)?
 
You cannot exclude it in this step - the sum will be 1 mod 4 sometimes. The question is: Can it be 13 mod 25 at the same time?
 
  • #10
But how do I prove that? What method can I use?
 
  • #11
Find them by testing, and prove them by considering appropriate sums?
 
  • #12
You want to know whether/when n(n+1)/2 ≡ 13 (mod 25). Suppose it is. Simplify that, and get the LHS into a perfect square.
 
Back
Top