Squares and Reciprocals

We call a positive integer N N square-partitionable if it can be partitioned into squares of two or more distinct positive integers, and if the sum of the reciprocals of these integers is 1. For example, 49 49 is square-partitionable because 49 = 2 2 + 3 2 + 6 2 and 1 2 + 1 3 + 1 6 = 1. 49 = 2^2 + 3^2 + 6^2\quad \text{ and }\quad \frac{1}{2} + \frac{1}{3} + \frac{1}{6} = 1. What is the next smallest square-partitionable integer?

Note : This problem is intended to be solved with programming.


The answer is 200.

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.

8 solutions

D C
Feb 4, 2018

You can approach a solution easily without code by multiplying the original sum by 1 / 2 1/2 to get:

1 / 2 = 1 / 4 + 1 / 6 + 1 / 12 1/2=1/4+1/6+1/12

Then we can add 1 / 2 1/2 to our new sum to get:

1 = 1 / 2 + 1 / 4 + 1 / 6 + 1 / 12 1=1/2+1/4+1/6+1/12

Finally, we add the squares of the denominators to get:

2 2 + 4 2 + 6 2 + 1 2 2 = 200 2^2+4^2+6^2+12^2=200

Notice it is easy to deduce that 200 is the next smallest square-partitionable integer involving a 2, since the remaining terms of the reciprocal sum must add to 1 / 2 1/2 , and by dividing the reciprocal sum of the smallest solution by 2, we end up with the best reciprocal sum to add to 1 / 2 1/2 . However, it is not known for sure if this is the next smallest square-partitionable integer, since there could be a smaller one that does not involve a 2, but fortunately, this is not the case.

Thus the answer must be 200 \boxed{200} .

So in general if N = a 1 2 + + a n 2 , 1 = 1 a 1 + + 1 a n , N = a_1^2 + \cdots + a_n^2,\ \ \ 1 = \frac 1{a_1} + \cdots + \frac 1{a_n}, then 4 N + 4 = 2 2 + 2 2 ( a 1 2 + + a n 2 ) , 1 = 1 2 + 1 2 ( 1 a 1 + + 1 a n ) ; 4N + 4 = 2^2 + 2^2(a_1^2 + \cdots + a_n^2),\ \ \ 1 = \frac 12 + \frac 12\left(\frac 1{a_1} + \cdots + \frac 1{a_n}\right); 4 N + 4 = 2 2 + ( 2 a 1 ) 2 + + ( 2 a n ) 2 , 1 = 1 2 + 1 2 a 1 + + 1 2 a n . 4N + 4 = 2^2 + (2a_1)^2 + \cdots + (2a_n)^2,\ \ \ 1 = \frac 12 + \frac 1{2a_1} + \cdots + \frac 1{2a_n}.

Therefore you can start with the observation N = 49 N = 49 and repeatedly apply N 4 N + 4 N \mapsto 4N + 4 to generate an infinite list of solutions; or, N = 151 4 n 16 12 n = 1 , 2 , N = \frac{151\cdot 4^n - 16}{12}\ \ \ \ \ \ \ \ n = 1, 2, \dots all satisfy the condition. The first few terms are N = 49 , 200 , 804 , 3220 , 12884 N = 49,\ 200,\ 804,\ 3220,\ 12884

Arjen Vreugdenhil - 3 years, 4 months ago

Log in to reply

(I'm just making this implicit statement explicit for everyone else.)

This approach gives us an infinite family of solutions. However, it doesn't give us all possible solutions.

See Arjen's solution for other examples like 1 = 1 3 + 1 4 + 1 5 + 1 6 + 1 20 1 = \frac{1}{3} + \frac{1}{4} + \frac{1}{5} + \frac{1}{6} + \frac{1}{20} . It just happens that the next smallest value could be derived in this manner.

Calvin Lin Staff - 3 years, 4 months ago

I was curious about closed form expression Arjen wrote, so I derived it for myself. I will post it here so that everyone who maybe wonders how it came up now now knows.

First, notice that this is non-homogeneous recurrence relation. That means that we will first have to solve homogeneous, then guess the form of particular solution and solve it and our final solution will be the sum of those two.

Corresponding homogeneous recurrence relation is a n + 1 = 4 a n a_{n+1} = 4a_{n} , and solution is pretty straightforward a n = α 4 n a_{n} = \alpha \cdot 4^{n} where α \alpha is some constant whose value we will determine later.

For non-homogeneous we will guess the solution in the form of A A which is also some constant. Thus final solution is the form of a n = α 4 n + A . a_{n} = \alpha \cdot 4^{n} + A. If we let a 1 = 49 a_{1} = 49 and a 2 = 200 a_{2} = 200 , and plug those values in our solution form we get the following system of equations: 49 = α 4 1 + A 200 = α 4 2 + A \begin{aligned} & 49= \alpha \cdot 4^{1} + A \\ & 200 = \alpha \cdot 4^{2} + A \end{aligned} Subtracting first from the second we get α = 151 12 \alpha = \dfrac{151}{12} . Now, plugging that back in the one of two equations yields A = 4 3 = 16 12 A = -\dfrac{4}{3} = -\dfrac{16}{12} . Now we know all the constants and have the complete closed form expressions for our recurrence: a n = 151 4 n 16 12 a_{n} = \dfrac{151 \cdot 4^{n} - 16}{12}

Uros Stojkovic - 3 years, 4 months ago

I may not be familiar with the definition of square-partitionable, but the problem should have said we are looking for positive integers. If we take the text of the problem strictly, 51 is a good solution, with the three distinct integers being -5, 1, 5. (haven't checked for 50, I must admit)

Laszlo Kocsis - 3 years, 4 months ago

Log in to reply

Good point. I will edit the problem to reflect this. (Instead of squares of distinct integers, it must be distinct squares of integers...)

Arjen Vreugdenhil - 3 years, 4 months ago

However, it is not known for sure if this is the next smallest square-partitionable integer, since there could be a smaller one that does not involve a 2, but fortunately, this is not the case.

Can you explain your proof a bit more? I am not able to follow especially this line.

Agnishom Chattopadhyay - 3 years, 4 months ago

Log in to reply

What D C showed is that given a solution to the problem with n n terms, you can easily generate another solution with n + 1 n+1 terms. This generates an infinite "family" of solutions. Starting with the given solution of N = 49 N = 49 and three terms, he generated the solution with N = 200 N = 200 and four terms.

However, being able to generate infinitely many solutions is not the same as generating all solutions.

It might therefore be the case, that there is a solution between N = 49 N = 49 and N = 200 N = 200 , which however is not part of this family. In that case, D C's answer of 200 would have been incorrect.

Arjen Vreugdenhil - 3 years, 4 months ago

Log in to reply

Yes, but how does D C know that there is no solution between 49 and 200?

Agnishom Chattopadhyay - 3 years, 4 months ago

Log in to reply

@Agnishom Chattopadhyay He didn't until he saw that Brilliant said the answer was correct. That is precisely the point of his remark that "it is not known for sure if this is the next smallest square-partitionable integer."

Arjen Vreugdenhil - 3 years, 4 months ago

From reading the question I thought the square-partitionable had to be a square itself like 49 in which case the answer is 2704 the sum of the following squares 2,3,9,33,39

Scott Rodham - 3 years, 4 months ago

Log in to reply

But the sum of reciprocals in that case is not equal to 1.

Arjen Vreugdenhil - 3 years, 4 months ago

wait you didn't say that the integers can't be repeated ! 1/4+1/4+1/3+1/6=1 should be the next number that is 16+16+9+36=77 !

Antariksha Mitra - 3 years, 4 months ago

Log in to reply

Yes, he did:

... into squares of two or more distinct positive integers ...

Arjen Vreugdenhil - 3 years, 4 months ago
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include<stdio.h>

#define MAX_N 999
#define MAX_T 99

long N;
int term[MAX_T];

void split_squares(long M, int ct, long num, long den) {
    int i, min_i;

    if (num == den) {
        if (M == 0 && ct >= 2) {
            printf("%ld: ", N);
            for (i = 1; i <= ct; i++) printf("%d ",term[i]);
            printf("\n");
        }
    } else {
        min_i = den / (den-num);
        if (term[ct] >= min_i) min_i = term[ct] + 1;
        ct++;

        for (i = min_i; i*i <= M; i++) {
            term[ct] = i;
            split_squares(M - i*i, ct, num*i+den, den*i);
        }
    }
}

int main() {
    term[0] = 0;
    for (N = 1; N < MAX_N; N++) {
        split_squares(N,0,0,1);
    }
    return 0;
}

Output:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
49: 2 3 6 
200: 2 4 6 12 
338: 2 3 10 15 
418: 2 3 9 18 
445: 2 4 5 20 
486: 3 4 5 6 20 
489: 2 4 10 12 15 
530: 3 4 6 10 12 15 
569: 2 4 9 12 18 
609: 2 5 6 12 20 
610: 3 4 6 9 12 18 
653: 2 3 8 24 
770: 2 6 9 10 15 18 
775: 3 4 5 10 15 20 
804: 2 4 8 12 24 
845: 3 4 6 8 12 24 
855: 3 4 5 9 18 20 
898: 2 5 10 12 15 20 
899: 3 4 9 10 12 15 18 
939: 3 5 6 10 12 15 20 
978: 2 5 9 12 18 20 

We see that the example solution of 49 is the smallest; the second-smallest is 200 = 2 2 + 4 2 + 6 2 + 1 2 2 , \boxed{200} = 2^2 + 4^2 + 6^2 + 12^2, and indeed 1 2 + 1 4 + 1 6 + 1 12 = 6 + 3 + 2 + 1 12 = 1. \frac 1 2 + \frac 1 4 + \frac 1 6 + \frac 1 {12} = \frac{6 + 3 + 2 + 1}{12} = 1.


Explanation: The work is done by the recursive function split_squares . At any point in the calculation, we have N = t 0 2 + t 1 2 + + t c 1 2 + M ; 1 t 0 + 1 t 1 + + 1 t c 1 = n d . N = t_0^2 + t_1^2 + \cdots + t_{c-1}^2 + M;\ \ \ \ \frac 1{t_0} + \frac1{t_1} + \cdots + \frac1{t_{c-1}} = \frac{n}{d}. The process ends successfully if M = 0 M = 0 and n = d n = d . It fails if M = 0 M = 0 but n < d n < d ; or if n = d n = d but M > 0 M > 0 ; or if M < 0 M < 0 or n > d n > d .

If M > 0 M > 0 and n < d n < d , we add a term t c t_c . It must be greater than the preceding term; we generate the terms in increasing order. Then the new values for recursion are M = M t c 2 ; n d = n d + 1 t c = n t c + d d t c . M' = M - t_c^2;\ \ \ \frac{n'}{d'} = \frac{n}{d} + \frac 1{t_c} = \frac{nt_c + d}{dt_c}. To ensure that M 0 M' \geq 0 we limit t c 2 M t_c^2 \leq M . Also, to ensure that the fraction does not exceed 1, we require n t c + d d t c nt_c + d \leq dt_c ; this translates to a minimum value, t c d / ( d n ) t_c \geq \lceil d/(d-n) \rceil .

Note: this program is not stable for much larger values of N N . This can be fixed, at least in part, by dividing the new numerator and denominator by their greatest common divisor before recursion.

Arjen Vreugdenhil - 3 years, 4 months ago

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from math import sqrt

def subset_sum(numbers, target, partial = [], ints=[]):

    s = 0
    s_partit = 0
    if len(partial) != 0:
        for i in partial:
            s += i
        for i in ints:
            s_partit += lcm(*ints)/i
    eq_one_check = s_partit*1./lcm(*ints)

    # check if the partial sum is equals to target number and addition of reciprocals = 1
    if (s == target) and (eq_one_check == 1.0): 
        print "%s; %s" % (ints, target)
    if s >= target:
        return  # if we reach the number

    for i in range(len(numbers)):
        n = numbers[i]
        remaining = numbers[i+1:]
        subset_sum(remaining, target, partial + [n], ints + [int(sqrt(n))])

def gcd(*numbers):
    """Return the greatest common divisor of the given integers"""
    from fractions import gcd
    return reduce(gcd, numbers)

def lcm(*numbers):
    """Return lowest common multiple."""    
    def lcm(a, b):
        return (a * b) // gcd(a, b)
    return reduce(lcm, numbers, 1)

if __name__ == "__main__":
    for num in range(2,2000):   
        squares = [i**2 for i in range(2,int(sqrt(num))+1)]
        subset_sum(squares,num)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
[2, 3, 6]; 49
[2, 4, 6, 12]; 200
[2, 3, 10, 15]; 338
[2, 3, 9, 18]; 418
[2, 4, 5, 20]; 445
[3, 4, 5, 6, 20]; 486
[2, 4, 10, 12, 15]; 489
[3, 4, 6, 10, 12, 15]; 530
[2, 4, 9, 12, 18]; 569
[2, 5, 6, 12, 20]; 609
[3, 4, 6, 9, 12, 18]; 610
[2, 3, 8, 24]; 653
[2, 6, 9, 10, 15, 18]; 770
[3, 4, 5, 10, 15, 20]; 775
[2, 4, 8, 12, 24]; 804
[3, 4, 6, 8, 12, 24]; 845
[3, 4, 5, 9, 18, 20]; 855
[2, 5, 10, 12, 15, 20]; 898
[3, 4, 9, 10, 12, 15, 18]; 899
[3, 5, 6, 10, 12, 15, 20]; 939
[2, 5, 9, 12, 18, 20]; 978
[2, 6, 8, 10, 15, 24]; 1005
[3, 5, 6, 9, 12, 18, 20]; 1019
[2, 4, 7, 14, 28]; 1049
[2, 5, 6, 10, 30]; 1065
[2, 6, 8, 9, 18, 24]; 1085
[3, 4, 5, 8, 20, 24]; 1090
[3, 4, 6, 7, 14, 28]; 1090
[3, 4, 8, 10, 12, 15, 24]; 1134
[3, 4, 5, 10, 12, 30]; 1194
[4, 5, 6, 9, 10, 15, 18, 20]; 1207
[2, 5, 8, 12, 20, 24]; 1213
[2, 6, 7, 12, 14, 28]; 1213
[3, 4, 8, 9, 12, 18, 24]; 1214
[3, 5, 6, 8, 12, 20, 24]; 1254
[2, 4, 6, 21, 28]; 1281
[3, 5, 9, 10, 12, 15, 18, 20]; 1308
[2, 4, 6, 20, 30]; 1356
[2, 8, 9, 10, 15, 18, 24]; 1374
[3, 4, 7, 10, 14, 15, 28]; 1379
[2, 3, 12, 21, 28]; 1382
[3, 6, 8, 9, 10, 15, 18, 24]; 1415
[2, 5, 9, 10, 18, 30]; 1434
[4, 5, 6, 8, 10, 15, 20, 24]; 1442
[2, 3, 12, 20, 30]; 1457
[2, 5, 7, 14, 20, 28]; 1458
[3, 4, 7, 9, 14, 18, 28]; 1459
[3, 5, 6, 9, 10, 18, 30]; 1475
[3, 5, 6, 7, 14, 20, 28]; 1499
[2, 7, 10, 12, 14, 15, 28]; 1502
[4, 5, 6, 8, 9, 18, 20, 24]; 1522
[3, 5, 8, 10, 12, 15, 20, 24]; 1543
[3, 6, 7, 10, 12, 14, 15, 28]; 1543
[4, 6, 8, 9, 10, 12, 15, 18, 24]; 1566
[2, 4, 10, 15, 21, 28]; 1570
[2, 7, 9, 12, 14, 18, 28]; 1582
[3, 4, 6, 10, 15, 21, 28]; 1611
[3, 5, 8, 9, 12, 18, 20, 24]; 1623
[3, 6, 7, 9, 12, 14, 18, 28]; 1623
[4, 5, 6, 9, 10, 12, 18, 30]; 1626
[2, 4, 10, 15, 20, 30]; 1645
[2, 4, 9, 18, 21, 28]; 1650
[4, 5, 6, 7, 12, 14, 20, 28]; 1650
[2, 3, 14, 15, 35]; 1659
[2, 5, 8, 10, 24, 30]; 1669
[2, 4, 6, 18, 36]; 1676
[3, 4, 6, 10, 15, 20, 30]; 1686
[2, 5, 6, 20, 21, 28]; 1690
[3, 4, 6, 9, 18, 21, 28]; 1691
[3, 4, 7, 8, 14, 24, 28]; 1694
[2, 3, 11, 22, 33]; 1707
[3, 5, 6, 8, 10, 24, 30]; 1710
[2, 4, 9, 18, 20, 30]; 1725
[2, 6, 10, 12, 15, 21, 28]; 1734
[3, 4, 6, 9, 18, 20, 30]; 1766
[2, 3, 12, 18, 36]; 1777
[2, 4, 8, 10, 40]; 1784
[3, 5, 7, 10, 14, 15, 20, 28]; 1788
[2, 6, 10, 12, 15, 20, 30]; 1809
[2, 4, 12, 14, 15, 35]; 1810
[4, 5, 8, 9, 10, 15, 18, 20, 24]; 1811
[4, 6, 7, 9, 10, 14, 15, 18, 28]; 1811
[2, 6, 9, 12, 18, 21, 28]; 1814
[2, 7, 8, 12, 14, 24, 28]; 1817
[3, 4, 5, 12, 20, 21, 28]; 1819
[3, 4, 6, 8, 10, 40]; 1825
[2, 3, 7, 42]; 1826
[3, 4, 6, 12, 14, 15, 35]; 1851
[2, 4, 11, 12, 22, 33]; 1858
[3, 6, 7, 8, 12, 14, 24, 28]; 1858
[4, 5, 6, 8, 10, 12, 24, 30]; 1861
[3, 5, 7, 9, 14, 18, 20, 28]; 1868
[2, 4, 8, 21, 24, 28]; 1885
[2, 6, 9, 12, 18, 20, 30]; 1889
[3, 4, 6, 11, 12, 22, 33]; 1899
[3, 7, 9, 10, 12, 14, 15, 18, 28]; 1912
[3, 4, 6, 8, 21, 24, 28]; 1926
[3, 4, 5, 8, 15, 40]; 1939
[4, 5, 7, 10, 12, 14, 15, 20, 28]; 1939
[2, 4, 10, 14, 20, 35]; 1941
[2, 6, 8, 10, 12, 40]; 1948
[2, 4, 8, 20, 24, 30]; 1960
[2, 4, 10, 15, 18, 36]; 1965
[5, 6, 8, 9, 10, 12, 15, 18, 20, 24]; 1975
[2, 4, 7, 12, 42]; 1977
[2, 5, 10, 15, 20, 21, 28]; 1979
[3, 4, 9, 10, 15, 18, 21, 28]; 1980
[3, 4, 6, 10, 14, 20, 35]; 1982

Michael Fitzgerald - 3 years, 4 months ago

Log in to reply

looks very efficient, my python script took a few seconds just to find 200 on a raspberri pi :-)

Meneghin Mauro - 3 years, 4 months ago

Nice work! Arjen. This Python recursive version uses LCMs to solve Note: for what it's worth, a couple of numbers above 1000 (and below) 1300 have 2 solutions...1090 and 1213

Michael Fitzgerald - 3 years, 4 months ago

Brilliant, Can you post below solution please as a separate solution to this prob..tx

Michael Fitzgerald - 3 years, 4 months ago

Sir, I am truly amazed by this can you please teach me the programming. Your Sincerely Abhay Sharma

abhay sharma - 3 years, 4 months ago

Its easy. Just need to keep solving problems....start easy and work your way to more difficult ones.

Michael Fitzgerald - 3 years, 3 months ago
Matthew Feig
Feb 5, 2018

[EDIT: This comment refers to a previous wording of the problem.]

The wording should include the requirement that the integers used in the sum be positive :

"We call a positive integer N N square-partitionable if it can be partitioned into squares of at least 2 distinct positive integers, and if the sum of the reciprocals of these positive integers is 1."

That is how I (and most everyone else) interpreted the question. But as currently worded, you can use reciprocals of negative integers, and thus get solutions with N N less than 200.

1 1 + 1 2 + 1 3 + 1 6 = 1 \frac{1}{1}+\frac{1}{-2}+\frac{1}{3}+\frac{1}{6} = 1 leads to N = 1 2 + ( 2 ) 2 + 3 2 + 6 2 = 50 N = 1^2+(-2)^2+3^2+6^2 = 50

1 1 + 1 3 + 1 4 + 1 12 = 1 \frac{1}{1}+\frac{1}{-3}+\frac{1}{4}+\frac{1}{12} = 1 leads to N = 1 2 + ( 3 ) 2 + 4 2 + 1 2 2 = 170 N = 1^2+(-3)^2+4^2+12^2 = 170

1 2 + 1 3 + 1 4 + 1 12 = 1 \frac{1}{2}+\frac{1}{3}+\frac{1}{4}+\frac{1}{-12} = 1 leads to N = 2 2 + 3 2 + 4 2 + ( 12 ) 2 = 173 N = 2^2+3^2+4^2+(-12)^2 = 173

The integers do not have to be negative as the square of the 2 integers (-ve or +ve) are going to be the same.

Divyansh Jain - 3 years, 4 months ago

Log in to reply

The squares are positive, but not the reciprocals.

Michael Petro - 3 years, 4 months ago

Good eye. We've fixed the wording of the problem so that the intended solution of 200 is correct.

Andrew Hayes Staff - 3 years, 4 months ago

Yes, badly worded question!! Need to brush up on your English.

Tim Rolph - 3 years, 4 months ago
James Fang
Feb 4, 2018

You try to partition the fraction with the smallest possible denominator into two other fractions with smallest possible denominators. Since 2 cannot be partitioned (already partitioned into 1/3 and 1/6), you partition the 1/3 into two other fractions, 1/4 and 1/3 - 1/4 = 1/12. Therefore, you add up the denominators squared: 2^2 + 4^2 + 6^2 + 12^2 = 4 + 16 + 36 + 144 = 200.

My Python code:

def rekurs(n, sand, sum, i):
    if n == 0:
        return sum == sand
    while i * i <= n:
        if rekurs(n - i * i, sand * i, sum * i + sand, i + 1):
            return True
        i += 1
    return False

def check(n):
    return rekurs(n, 1, 0, 2)

i = 50
while not check(i):
    i += 1

print(i)
Stephen Emmerson
Feb 6, 2018

C#:

void Main()
{
  for (int n = 0; n < 1100; n++) {
    var partitions = PartitionIntoAscendingSquares(1,n)
              .Where( part => part.Count() > 1)   // at least 2 squares
              .Where( part => {            // reciprocals add to 1
                  var prod = part.Aggregate(1, (p,x) => p*x);   // denominator
                  var sums = part.Aggregate(0, (s,x) => (prod/x) + s);  // numerators
                  return sums == prod;
              });

    if (partitions.Count() > 0) 
      foreach (var part in partitions) 
        Console.WriteLine($"{n}: {String.Join(",", part.OrderBy(x=>x))}");
  }
}

IEnumerable<IEnumerable<int>> PartitionIntoAscendingSquares(int from, int n) {
  if (n == 0) 
    yield return new int [] {} ;
  else 
    for (int i = from; i * i <= n; i++) 
      foreach (var part in PartitionIntoAscendingSquares(i + 1, n - i * i)) 
        yield return part.Concat(new int[] {i});
} 

49: 2,3,6
200: 2,4,6,12
338: 2,3,10,15
418: 2,3,9,18
445: 2,4,5,20
486: 3,4,5,6,20
489: 2,4,10,12,15
530: 3,4,6,10,12,15
569: 2,4,9,12,18
609: 2,5,6,12,20
610: 3,4,6,9,12,18
653: 2,3,8,24
770: 2,6,9,10,15,18
775: 3,4,5,10,15,20
804: 2,4,8,12,24
845: 3,4,6,8,12,24
855: 3,4,5,9,18,20
898: 2,5,10,12,15,20
899: 3,4,9,10,12,15,18
939: 3,5,6,10,12,15,20
978: 2,5,9,12,18,20
1005: 2,6,8,10,15,24
1019: 3,5,6,9,12,18,20
1049: 2,4,7,14,28
1065: 2,5,6,10,30
1085: 2,6,8,9,18,24
1090: 3,4,5,8,20,24
1090: 3,4,6,7,14,28

200 is the second smallest integer. 1090 is the first with 2 distinct solutions.

Jeremy Galvagni
Feb 4, 2018

Not a proof but I did get the answer by constructing a few such numbers backward:

In the example, the factors of 6 are 1,2,3,6 and the subset 1+2+3=6. 6/1=6, 6/2=3, 6/3=2 and 6^2+3^2+2^2=49

The key is to find a number whose factors contain a subset that sums to the number.

The next such number is 12. Factors are 1,2,3,4,6,12 (2,4,6 will give the example) and the subset is 1,2,3,6. 12^2+6^2+4^2+2^2= 200

The next number is 18 which gives 418 and 20 gives 445

I stopped there and got lucky. As Arjen's table shows, 30 gives a somewhat small 338 (by avoiding the factor 1)

Sundeep Narang
Feb 5, 2018

if look at the 2nd part

1 2 + 1 3 + 1 6 = 1 \frac{1}{2}+\frac{1}{3}+\frac{1}{6} = 1

which is 3 + 2 + 1 = 6 3+2+1 = 6

we can see only integers for whom a subset of factors can add to themselves can satisfy this criteria like in this case 1, 2, 3 factors of 6 add upto 6

the next integer after 6, this is possible for is 12. 1,2,3,6 and 2,4,6 add upto 12.

2,4,6 is same as first case.

for 1,2,3,6 we have,

1 12 + 2 12 + 3 12 + 6 12 \frac{1}{12}+\frac{2}{12}+\frac{3}{12}+\frac{6}{12}

= 1 12 + 1 6 + 1 4 + 1 2 = \frac{1}{12}+\frac{1}{6}+\frac{1}{4}+\frac{1}{2}

which gives

1 2 2 + 6 2 + 4 2 + 2 2 = 200 12^2+6^2+4^2+2^2=200

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...