What is the last digit of the smallest positive integer N that can be written as the sum of two or more consecutive positive integers in at least 2018 ways?
Bonus: Can you find N ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
A wild guess at N: 5614301818125
I couldn't find an OEIS sequence that goes far enough but this is the smallest n with exactly 2000 odd factors. It may have 2018 and be the smallest with 2018. https://oeis.org/A038547
The sequence we want doesn't have nearly enough terms: https://oeis.org/A214771
Log in to reply
5614301818125 has "only" 2000 divisors, as you say, not 2019 as required. But you are certainly close. Actually, there are smaller numbers with more divisors, like 4512611027925, with 3072 divisors, but that is still not the one we are looking for.
Log in to reply
3710369067405 has 2048 odd divisors and is the product of eleven primes from 3 to 37. From 2018 to 2048 divisors I couldn't find any smaller example, so I believe this is the number we're looking for.
Log in to reply
@Lucas Viana Reis – There are even smaller integers that have 2048 divisors, for example, 902522205585. I'm taking your number, 3710369067405, add two factors 3 and drop the 37, making the number more than four times smaller overall. You can run with this idea to come up with even smaller integers with 2048 divisors.
Log in to reply
@Otto Bretscher – That's right! I'm terrible at this. I'll be looking forward to other people's solutions.
Log in to reply
@Lucas Viana Reis – You were very close, one step away. Multiply with 25 and divide by 31, and you got the solution (same "trick" as with 37 and 9). Hope you had fun... Dennis Kindervater submitted the answer a little while ago; look for it in another thread.
I'm pretty sure N=3^4×5^2×7^2×11^2×13×17×19×23=1159525191825 that has exactly 5 3^3 2^4=2160 divisors is the smallest posible such N. At least It is smaller than what all of you got.
Log in to reply
It's pretty close, but 1018976683725 is smaller and has more divisors, namely, 2304.
Log in to reply
Shouldn't N = 3x5x7x9x11x13x17x19x23x25x29 = 727840488375 be the smallest such N with 2^11-1 = 2047 possibilities? If that is the case, I kind of wonder what the smallest N with exactly 2018 ways tow write would be.
Log in to reply
@Dennis Kindervater – Ja, genau!
The smallest positive integer with exactly 2019 odd divisors would have to be 3 6 7 2 5 2 , exceeding 1 0 3 2 2
@Dennis Kindervater – Wow you are right. I first though that you cheated with this 9 and 5 but you are totaly right and I thing you then may have a method to create this numbers right?
Log in to reply
@Pau Cantos – Yeah, so far my conjecture is if you write N as the product of the first n smallest positive odd integers where every integer is either prime or a prime squared(or perhaps any square?) then you will get exactly 2^n - 1 divisors. Thus for n = 11 you will get the product N = 3x5x...x25x29. But this is mostly based on intuiton and a little bit of code - so it's definitely still lacking proper proof. I'm also guessing that if you choose n in a way that n is the smallest integer with x < 2^n where x is the number of divisors required(2018 in this question) you will get the smallest N for all values of x where 2^(n-1)-1 < x < 2^n.
I think your other reply already answered my question.
Log in to reply
@Dennis Kindervater – I think it probably won't be so easy but good luck and post it if you have a proof of a method please. I also throught that some matematishian must have worked in this, maybe Ramanujan with his study of highly composite numbers. Only for if It helps.
@Dennis Kindervater – Sound interesting!
It is certainly true that if an integer is a product of distinct odd primes and possibly their squares, then the number of divisors will be 2 n where n is the number of factors (that follows from the formula for the number of odd divisors).
I'm trying to understand your guess. According to your theory, what is the smallest positive integer with more than 1024 odd divisors? Will it be the number you found for 2018? Maybe we were just lucky that 2018 is so close to 2048 ;)
Log in to reply
@Otto Bretscher – Yeah, such would be my guess. I'll have to try and see if I can get on to (dis-)proving such a thing, but perhaps that's beyond me. I'd definitely appreciate hearing from you or anyone else if they have a proof(or maybe a counterexample with a better conjecture for the smallest N?) for this. It certainly seems like a fun problem to solve.
Edit: I just realised that I have already seen some values that don't fit this formula while playing around with some different values.
Log in to reply
@Dennis Kindervater – It's a complicated (but fun!) issue with few general rules (thus far!) but lots of small observations and insights; Ramanujan and other great minds have pondered these issues. Playing around, one develops a "feeling" for it, as you demonstrated in finding N for 2018.
We can certainly find many N's where the number of odd divisors isn't a power of 2. For example, for n = 1 0 2 5 we get N = 3 5 1 3 7 1 2 7 0 2 5 with 1152 divisors.
Log in to reply
@Otto Bretscher – Yes, it seems complicated but very interesting to find general patterns for such values! I wonder if there are any academic works on the subject?
Log in to reply
@Lucas Viana Reis – The subject is generally referred to as "highly composite numbers." There is a very interesting article from Ramanujan here , including a table, and much follow-up work.
@Otto Bretscher - I'm sorry if my doubt seems stupid. I want to ask why is it that the immediate HCN >2018 is a better choice than the immediate SHCN>2018. Is it just because the SHCN 2520 is inefficient in this case providing more divisors than required, hence unworthy or is it the case that in such applications only highly composite numbers are good enough. I kept thinking of 2520 and simply missed 2048.
Log in to reply
We are looking for the smallest highly composite odd number that has more than 2018 divisors, which happens to be 727840488375, with 2048 divisors. All the smaller odd numbers have 1920 divisors or fewer. I don't believe there is a highly composite odd number with 2520 divisors; how did you get interested in that value? ~~ I must confess that I do not fully understand your concern.
I took me a long time to realize this, but as Otto Bretscher said: "It is a pretty well-known fact that the number of ways a positive integer n can be expressed as a sum of consecutive positive integers is equal to the number of odd divisors of n ."
Assume that the solution N is even, so N = 2 ⋅ k , k ∈ N . The divisors of N are either a divisor of k or 2 ⋅ ( a divisor of k ) . So k and N have the same number of odd divisors, but N > k , hence N cannot be the solution. We showed by contradiction that N is odd.
So N can be factorized as N = 3 p 3 ⋅ 5 p 5 ⋅ 7 p 7 ⋅ 1 1 p 1 1 ⋅ . . .
The number of odd divisors for a certain solution is Q = ( p 3 + 1 ) ⋅ ( p 5 + 1 ) ⋅ ( p 7 + 1 ) ⋅ ( p 1 1 + 1 ) ⋅ . . .
When choosing the primes to compose N , it's always better to take a certain prime once before taking any larger one, because it makes N less large for the same impact on Q . So either the solution is 3 2 0 1 7 or p 5 > 0 . The first one is obviously false (counter-example: 5 ⋅ 3 1 0 0 8 < 3 2 0 1 7 ), hence p 5 > 0 . This means that N is the product of 5 and an odd number, which implies that the last digit is 5 .
I wrote a script that looks for the smallest N with Q ≥ 2 0 1 8 and I found N = 7 2 7 ′ 8 4 0 ′ 4 8 8 ′ 3 7 5 = 3 3 ⋅ 5 3 ⋅ 7 ⋅ 1 1 ⋅ 1 3 ⋅ 1 7 ⋅ 1 9 ⋅ 2 3 ⋅ 2 9 with Q = 2 0 4 8 .
Greetings to Zürich from a Swiss expatriate!
Very nice solution! Thank you! It looks like we are pretty much using the same methods in our respective solutions, but yours is written better ;) Your N is correct; other solvers have found the same value, after a bit of a search (see the comments section to my solution). This N happens to be the 50th "highly composite odd number" as listed here .
It is not very hard to figure out that the last digit is 5. But finding N may not be that easy.
We may ignore a fact: N must be written as the sum of two or more consecutive POSITIVE integers. A positive integer N (prime factorization: N = 3 p 3 × 5 p 5 × 7 p 7 × . . . ) can not written as ( p 3 + 1 ) × ( p 5 + 1 ) × ( p 7 + 1 ) × . . . ways, not that many.
For some simple samples:
2 1 = 3 1 × 7 1 , so 21 can be written as the sum of 7 consecutive integers, but these 7 numbers are NOT ALL POSITIVE: 0 , 1, 2, 3, 4, 5, 6.
4 5 = 3 2 × 5 1 , so 45 can be written as the sum of 15 consecutive integers, but these 15 numbers are NOT ALL POSITIVE: -4, -3, -2, -1, 0, ..., 9, 10.
The samples above mean, if N = A ⋅ B ( A and B are odd positive integers), and B > 2 A , then N can be written as the sum of A consecutive integers, but these A numbers are NOT ALL POSITIVE.
Some solvers have attempt to find N by solely using prime factorization ways, I am afraid that all those are not right answer.
Your worries are unfounded.
As I have tried to explain in my solution, when you get a 0 or negative numbers, you can simply cancel them out. To use your examples: In the case of 21 you can write 2 1 = 0 + 1 + 2 + 3 + 4 + 5 + 6 = 1 + 2 + 3 + 4 + 5 + 6 and in the case of 45 you have 4 5 = − 4 − 3 − 2 − 1 + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 1 0 = 5 + 6 + 7 + 8 + 9 + 1 0 . You get all the sums with an even number of consecutive summands this way.
Problem Loading...
Note Loading...
Set Loading...
It is a pretty well-known fact that the number of ways a positive integer n can be expressed as a sum of consecutive positive integers is equal to the number of odd divisors of n . As a reminder, we will outline a proof, establishing a bijection between the odd divisors of n and the ways of writing n as a sum of consecutive positive integers: If d ∣ n , we can write n as the sum of d consecutive integers with middle term d n . Lets illustrate this process by means of the example n = 1 5 : For d = 1 we have 1 5 = 1 5 ; for d = 3 we have 1 5 = 4 + 5 + 6 , for d = 5 we have 1 5 = 1 + 2 + 3 + 4 + 5 , and for d = 1 5 we have 1 5 = ( − 6 ) + ( − 5 ) + . . . + 6 + 7 + 8 . If the representation contains negative integers or 0, we cancel them out. For example, in the last case, 1 5 = 7 + 8 . It is not hard to see that all representations of n as a sum of consecutive positive integers can be obtained in this way.
Lets introduce some terminology; n will denote a positive integer throughout. Let a ( n ) be the number of odd divisors of n , let S be the set of all n with a ( n ) > 2 0 1 8 and let N be the smallest element of S . Note that we need at least 2019 odd divisors since we are not counting the trivial representation n = n corresponding to the divisor d = 1 .
Our goal is to show that N is odd and divisible by 5; this will imply that the last digit is 5 .
If the prime factorization of n is n = 2 n 0 p 1 n 1 . . . p m n m , then it is not hard to see that a ( n ) = ∏ j = 1 m ( n j + 1 ) . Note that a ( n ) = a ( 2 n ) , so that N is odd as claimed.
We claim that N fails to be a power of 3. Indeed, the smallest power of 3 in S is 3 2 0 1 8 , but 3 1 0 0 9 5 is a much smaller member of S . Let p be the smallest prime factor of N larger than 3. We can write N = p q m , where q ≥ 1 and p fails to be a factor of m . Then a ( N ) = ( q + 1 ) a ( m ) = a ( 5 q m ) , showing that 5 q m ∈ S and N = 5 q m , concluding our proof.
(It is worth mentioning that the answer remains the same if 2018 is replaced by any integer greater than 2.)