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

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
11 replies · 2K views
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 [itex]\equiv 13 (mod 100)[/itex]. 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 [itex]\equiv 13 (mod 100)[/itex]. 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 [itex]100=2^25^2[/itex], you could check what happens in mod 4.

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

[tex]1+2+3+4+5+...+n = 1+2+3+4+(4+1)+(4+2)+...[/tex]

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 [itex]100=2^25^2[/itex], you could check what happens in mod 4.

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

[tex]1+2+3+4+5+...+n = 1+2+3+4+(4+1)+(4+2)+...[/tex]

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 [itex]\equiv 0, 1, 2, 3 (mod 4)[/itex]. Also, 13 [itex]\equiv 1 (mod 4)[/itex] How do I exclude the possibility of S [itex]\equiv 1 (mod 4)[/itex]?
 
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?
 
But how do I prove that? What method can I use?