Enjoying 2018 while it lasts, Part 2

What is the last digit of the smallest positive integer N 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 ? N?

0 2 3 5 9 None of the above

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.

3 solutions

Otto Bretscher
Oct 31, 2018

It is a pretty well-known fact that the number of ways a positive integer n n can be expressed as a sum of consecutive positive integers is equal to the number of odd divisors of n n . As a reminder, we will outline a proof, establishing a bijection between the odd divisors of n n and the ways of writing n n as a sum of consecutive positive integers: If d n d|n , we can write n n as the sum of d d consecutive integers with middle term n d \frac{n}{d} . Lets illustrate this process by means of the example n = 15 n=15 : For d = 1 d=1 we have 15 = 15 15=15 ; for d = 3 d=3 we have 15 = 4 + 5 + 6 15=4+5+6 , for d = 5 d=5 we have 15 = 1 + 2 + 3 + 4 + 5 15=1+2+3+4+5 , and for d = 15 d=15 we have 15 = ( 6 ) + ( 5 ) + . . . + 6 + 7 + 8 15= (-6)+(-5)+...+6+7+8 . If the representation contains negative integers or 0, we cancel them out. For example, in the last case, 15 = 7 + 8 15= 7+8 . It is not hard to see that all representations of n n as a sum of consecutive positive integers can be obtained in this way.

Lets introduce some terminology; n n will denote a positive integer throughout. Let a ( n ) a(n) be the number of odd divisors of n n , let S S be the set of all n n with a ( n ) > 2018 a(n)>2018 and let N N be the smallest element of S S . Note that we need at least 2019 odd divisors since we are not counting the trivial representation n = n n=n corresponding to the divisor d = 1 d=1 .

Our goal is to show that N N is odd and divisible by 5; this will imply that the last digit is 5 \boxed{5} .

If the prime factorization of n n is n = 2 n 0 p 1 n 1 . . . p m n m 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 ) a(n)=\prod_{j=1}^{m}(n_j+1) . Note that a ( n ) = a ( 2 n ) a(n)=a(2n) , so that N N is odd as claimed.

We claim that N N fails to be a power of 3. Indeed, the smallest power of 3 in S S is 3 2018 3^{2018} , but 3 1009 5 3^{1009}5 is a much smaller member of S S . Let p p be the smallest prime factor of N N larger than 3. We can write N = p q m N=p^q m , where q 1 q\geq 1 and p p fails to be a factor of m m . Then a ( N ) = ( q + 1 ) a ( m ) = a ( 5 q m ) a(N)=(q+1)a(m)=a(5^qm) , showing that 5 q m S 5^q m \in S and N = 5 q m 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.)

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

Jeremy Galvagni - 2 years, 7 months ago

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.

Otto Bretscher - 2 years, 7 months ago

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.

Lucas Viana Reis - 2 years, 7 months ago

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.

Otto Bretscher - 2 years, 7 months ago

Log in to reply

@Otto Bretscher That's right! I'm terrible at this. I'll be looking forward to other people's solutions.

Lucas Viana Reis - 2 years, 7 months ago

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.

Otto Bretscher - 2 years, 7 months ago

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.

Pau Cantos - 2 years, 7 months ago

Log in to reply

It's pretty close, but 1018976683725 is smaller and has more divisors, namely, 2304.

Otto Bretscher - 2 years, 7 months ago

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.

Dennis Kindervater - 2 years, 7 months ago

Log in to reply

@Dennis Kindervater Ja, genau!

The smallest positive integer with exactly 2019 odd divisors would have to be 3 672 5 2 3^{672}5^2 , exceeding 1 0 322 10^{322}

Otto Bretscher - 2 years, 7 months ago

@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?

Pau Cantos - 2 years, 7 months ago

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.

Dennis Kindervater - 2 years, 7 months ago

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.

Pau Cantos - 2 years, 7 months ago

@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 2^n where n 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 ;)

Otto Bretscher - 2 years, 7 months ago

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.

Dennis Kindervater - 2 years, 7 months ago

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 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 = 1025 n=1025 we get N = 35137127025 N=35137127025 with 1152 divisors.

Otto Bretscher - 2 years, 7 months ago

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?

Lucas Viana Reis - 2 years, 7 months ago

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 - 2 years, 7 months ago

@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.

Giri V K - 2 years, 7 months ago

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.

Otto Bretscher - 2 years, 7 months ago
Yannick Ruffiner
Nov 6, 2018

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 n can be expressed as a sum of consecutive positive integers is equal to the number of odd divisors of n n ."

Assume that the solution N N is even, so N = 2 k , k N N=2 \cdot k, k \in \mathbb{N} . The divisors of N N are either a divisor of k k or 2 ( 2\cdot( a divisor of k ) k) . So k k and N N have the same number of odd divisors, but N > k N > k , hence N N cannot be the solution. We showed by contradiction that N N is odd.

So N N can be factorized as N = 3 p 3 5 p 5 7 p 7 1 1 p 11 . . . N = 3^{p_3} \cdot 5^{p_5} \cdot 7^{p_7} \cdot 11^{p_{11}} \cdot ...

The number of odd divisors for a certain solution is Q = ( p 3 + 1 ) ( p 5 + 1 ) ( p 7 + 1 ) ( p 11 + 1 ) . . . Q = (p_3 + 1) \cdot (p_5 + 1) \cdot (p_7 + 1) \cdot (p_{11} + 1) \cdot ...

When choosing the primes to compose N N , it's always better to take a certain prime once before taking any larger one, because it makes N N less large for the same impact on Q Q . So either the solution is 3 2017 3^{2017} or p 5 > 0 p_5 > 0 . The first one is obviously false (counter-example: 5 3 1008 < 3 2017 5 \cdot 3^{1008} < 3^{2017} ), hence p 5 > 0 p_5 > 0 . This means that N N is the product of 5 5 and an odd number, which implies that the last digit is 5 5 .

I wrote a script that looks for the smallest N N with Q 2018 Q \ge 2018 and I found N = 72 7 84 0 48 8 375 = 3 3 5 3 7 11 13 17 19 23 29 N = 727'840'488'375 = 3^3 \cdot 5^3 \cdot 7 \cdot 11 \cdot 13 \cdot 17 \cdot 19 \cdot 23 \cdot 29 with Q = 2048 Q = 2048 .

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 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 N happens to be the 50th "highly composite odd number" as listed here .

Otto Bretscher - 2 years, 7 months ago
Alstream Yang
Nov 6, 2018

It is not very hard to figure out that the last digit is 5. But finding N N may not be that easy.

We may ignore a fact: N N must be written as the sum of two or more consecutive POSITIVE integers. A positive integer N N (prime factorization: N = 3 p 3 × 5 p 5 × 7 p 7 × . . . N = 3^{p_3} \times 5^{p_5} \times7 ^{p_7} \times ... ) can not written as ( p 3 + 1 ) × ( p 5 + 1 ) × ( p 7 + 1 ) × . . . (p_3+1) \times (p_5+1) \times (p_7+1) \times ... ways, not that many.

For some simple samples:

21 = 3 1 × 7 1 21 = 3^1 \times 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.

45 = 3 2 × 5 1 45 = 3^2 \times 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 N = A \cdot B ( A A and B B are odd positive integers), and B > 2 A B > 2A , then N N can be written as the sum of A A consecutive integers, but these A A numbers are NOT ALL POSITIVE.

Some solvers have attempt to find N 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 21 = 0 + 1 + 2 + 3 + 4 + 5 + 6 = 1 + 2 + 3 + 4 + 5 + 6 21=0+1+2+3+4+5+6=1+2+3+4+5+6 and in the case of 45 you have 45 = 4 3 2 1 + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 45=-4-3-2-1+0+1+2+3+4+5+6+7+8+9+10 = 5 + 6 + 7 + 8 + 9 + 10 =5+6+7+8+9+10 . You get all the sums with an even number of consecutive summands this way.

Otto Bretscher - 2 years, 7 months ago

Log in to reply

Now I see, thank you for informing.

Alstream Yang - 2 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...