A Sum Of Products Of Sequences

{ x n = ( x n 1 + 1 ) 2 + 2 { n 2 } ( n 2 ) x 1 = 4. \begin{cases} x_{n}=(x_{n-1}+1)^{2}+2 \left \{ \frac{n}{2} \right \}\quad (n\ge 2) \\ x_{1}=4 .\end{cases} Define x n x_{n} as an infinite sequence of numbers, as shown above.

Define y n y_{n} as an infinite sequence of non-negative integers such that n y n n|y_{n} for all n 1 n\ge 1 .

What is the largest integer that cannot be expressed in the form n = 1 j x n y n \sum_{n=1}^{j}x_{n}y_{n} for some positive integer j j ?

Notations:

  • n y n n|y_{n} means that n n divides y n y_{n} . Note that n 0 n|0 for n 0 n \neq 0 .
  • { } \{\cdot \} denotes the fractional part function . For example, { 12.3345 } = 0.3345 \{ 12.3345 \}=0.3345 .


The answer is 2077.

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.

2 solutions

Mark Hennings
Oct 19, 2016

If we define u n = n x n u_n = nx_n , we want to find integers that can be written in the form n = 1 j z n u n \sum_{n=1}^j z_n u_n for some j N j \in \mathbb{N} and nonnegative integers z 1 , z 2 , . . . , z j z_1,z_2,...,z_j . In other words, we want to know which integers can be written as nonnegative integer combinations of the u n u_n . Now u 1 = 4 u_1 = 4 , u 2 = 50 u_2 = 50 and u 3 = 2031 u_3 = 2031 .

Any multiple of 4 4 can be expressed as a u 1 au_1 for a nonnegative integer a a . Any even integer greater than or equal to 48 48 can be written as a u 1 + b u 2 au_1 + bu_2 for nonnegative integers a , b a,b . Thus any odd integer greater than or equal to 2079 2079 can be written as a u 1 + b u 2 + u 3 au_1 + bu_2 + u_3 for nonnegative a , b a,b , and hence it follows that any integer greater than or equal to 2078 2078 can be written as a nonnegative integer combination of u 1 , u 2 , u 3 u_1,u_2,u_3 .

On the other hand, it is not possible to write 2077 = a u 1 + b u 2 + c u 3 = 4 a + 50 b + 2031 c 2077 = au_1 + bu_2 + cu_3 = 4a + 50b + 2031c for nonnegative integers a , b , c a,b,c . If it were possible, the fact that 2079 2079 was odd would force c c to be positive. Thus we must have c = 1 c=1 , and hence 4 a + 50 b = 46 4a + 50b = 46 . This would force b = 0 b=0 , and 46 = 4 a 46 = 4a , which is not possible.

Since u 4 = 1838736 u_4 = 1838736 , and all subsequent u n u_n are even bigger, none of these later u n u_n can contribute to an expression of 2077 2077 as a nonnegative integer combination of the u n u_n . Thus 2077 \boxed{2077} cannot be expressed as a nonnegative integer combination of the u n u_n , and hence this is the largest such integer.

@Brandon Monsen Wow, that's a nice question that involves the postage stamp problem / chicken mcnugget theorem :)

I really like Mark's solution as it provides a simple way of understanding how we hunted down this value, and only had to focus on u 1 , u 2 , u 3 u_1, u_2, u_3 .

Calvin Lin Staff - 4 years, 7 months ago
Brandon Monsen
Oct 18, 2016

First things first, we should notice that if α \alpha can be expressed, then α + 4 \alpha + 4 can also be expressed. Since 1 y 1 1|y_{1} for any non-negative integer y 1 y_{1} , we can just increase it by 1 1 to make α + 4 \alpha+4 .

Because of this, we simply have to find the smallest value of α \alpha can can be expressed in 0 , 1 , 2 , 3 m o d 4 0,1,2,3 \mod 4 , and then subtract four in order to find the largest value that cannot be expressed.

To start, let's define two new sequences p n p_{n} and q n q_{n} , where p n = x n m o d 4 p_{n}=x_{n} \mod 4 , and q n = y n n q_{n}=\frac{y_{n}}{n} . This will help to make the numbers easier to manage and see patterns, as well as "remove" the wacky condition on y n y_{n} .

So we get that p n = 0 , 1 , 1 , 0 , 2 , 1 , 1... p_{n}=0,1,1,0,2,1,1... and q n q_{n} is simply a sequence of non-negative integers.

Now, to find the smallest α \alpha congruent to r m o d 4 r \mod 4 , we let S = n = 1 j n p n q n S=\sum_{n=1}^{j}np_{n}q_{n} be congruent to r m o d 4 r \mod 4 :

0 m o d 4 0 \mod 4

Simply let y 1 = α 4 y_{1}=\frac{\alpha}{4} . Every non-negative multiple of four can be expressed.

1 m o d 4 1 \mod 4

S = 2 q 2 + 3 q 3 + 10 q 5 + 6 q 6 + 7 q 7 + . . . S=2q_{2}+3q_{3}+10q_{5}+6q_{6}+7q_{7}+...

In this case, q 2 = 1 , q 3 = 1 q_{2}=1,q_{3}=1 seems to be the smallest possibility, especially because introducing greater elements of q q will make the overall sum skyrocket in value. These values will give us that y 2 = 2 , y 3 = 3 y_{2}=2, y_{3}=3 will work, and give us that our α = 2081 \alpha=2081 is a possible value congruent to 1 m o d 4 1 \mod 4 , and we know that this is the smallest since x 4 > 2081 x_{4}>2081 , and our sequence is strictly increasing. This makes 2077 2077 the largest value congruent to 1 m o d 4 1 \mod 4 that we cannot express.

2 m o d 4 2 \mod 4

By the same logic and reasoning as above, we can say that q 2 = 1 q_{2}=1 will make the sum congruent to 2 m o d 4 2 \mod 4 , and so 46 46 will end up as the smallest value we cannot make congruent to 2 m o d 4 2 \mod 4 .

3 m o d 4 3 \mod 4

Letting q 3 = 1 q_{3}=1 will make the sum congruent to 3 m o d 4 3 \mod 4 , so we know that 2027 2027 is the smallest value we cannot make congruent to 3 m o d 4 3 \mod 4 .

The largest of these values is 2077 \boxed{2077}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...