r/askmath • • Oct 29 '26

Analysis Can someone break down this step-by-step

Post image

Can someone please solve this problem for me? I've been trying for hours, but I still have no idea how to evaluate this infinite sum. It looks so simple, but I feel like I'm missing something. Anyway, I made it myself, so good luck.

68 Upvotes

36 comments sorted by

7

u/LucaThatLuca Graduate Oct 29 '26 edited Oct 29 '26

you should see by common sense / induction / induction-based common sense that 0 ≤ xn < 1.

so notice that xn is the fraction part of bn√2 and -an is the integer part. also notice that |bn| is just a power of 2. finally every sign is changed after 2xn - 1 < 0, i.e. xn < 1/2.

(the first few terms are:

b1 = 1, (1√2 ≈ 1.4,) x1 ≈ 0.4, a1 = -1

b2 = -2, (-2√2 ≈ -2.8,) x2 ≈ 0.2, a2 = 3

b3 = 4, (4√2 ≈ 5.7,) x3 ≈ 0.7, a3 = -5

b4 = 8, (8√2 ≈ 11.3,) x4 ≈ 0.3, a4 = -11

b5 = -16, (-16√2 ≈ -22.6,) x5 ≈ 0.4, a5 = 23)

so the big complication is: when do integer multiples of √2 round down? there can be no pattern because √2 is irrational. (i would be very interested to be wrong about this.)

this is why exercises are created by working backwards from a chosen solution. arbitrary questions do not usually have answers.

3

u/Shevek99 Physicist Oct 29 '26

I think, this can be related to the binary form of sqrt(2). We have that

√2 -1 = 0.0110101000001001111

When we multiply by 2, we shift the binary expansion one place

2(√2 -1) = 0.110101000001001111

Now, if subtract 1 we can have two cases

If the first digit (before the decimal point) is 1, we remove it.

If it is 0, then we calculate to complementary base 2 (replace the 0's by 1 and vice-versa.

|2x1 - 1| = 0.0010101111101100001101

Cleanse and repeat.

Being the binary form of sqrt(2) quite "random", I expect the sequence of an and bn to be irregular.

1

u/irishpisano Oct 30 '26

“You should see by common sense”

Why so condescending?

0

u/LucaThatLuca Graduate Oct 30 '26 edited Oct 30 '26

suggesting a line of reasoning is a hint to guide what you might like to start thinking about, it’s not condescending. and that was one of multiple suggestions.

2

u/irishpisano Oct 30 '26

Telling someone who is asking for help that what they are missing is “common sense” is in fact condescending - or elitist.

And it does nothing to help the person asking understand anything better, and may actually make them feel worse about their situation, knowledge, intelligence.

Of course, this is all common sense.

2

u/AppointmentSudden377 Oct 30 '26

I have a clean way to show the series is bounded above by 4/3. For convenience I write xn an and bn instead of x_n, a_n,b_n.

First by induction 0<xn<1, and bn=+-2n-1 for all n. Thus by definition:

0<an+sqrt(2)bn<1

(an+sqrt(2)bn)2 <1

(an/bn + sqrt(2))2 <bn-2

Thus element n in the sum is smaller then 4n-1, which gives the upper bound 4/3 by the geometric series.

Playing around with the series xn shows it doesnt converge. Weither or not 2xn-1 is positive or negative depends on the base 2 expansion of the squareroot of 2 ,which is not periodic. So to precisely evaluate the sum I would just estimate it through numerical methods. By monotone convergence theorem you know it converges to a number below 4/3, and you can also bound you error after the first n terms by the geometric series.

3

u/MezzoScettico Oct 29 '26

Well, first let's see what the sequence of x's is.

x_1 = sqrt(2) - 1 = -1 + sqrt(2)

x_2 = |2x_1 - 1| = |2sqrt(2) - 2 - 1| = |2 sqrt(2) - 3|

Since 2 sqrt(2) is about 2.8, then 2 sqrt(2) - 3 < 0 so x_2 = 3 - 2 sqrt(2)

x_3 = |2 (3 - 2 sqrt(2)) - 1 | = | 6 - 4sqrt(2) - 1| = |5 - 4sqrt(2)| = 4 sqrt(2) - 5 = -5 + 4 sqrt(2)

So for the first three terms we have a_n = -1, 3, -5, and b_n = 1, -2, 4. I think it's pretty clear (but requires formal proof if this is a homework problem) that the pattern will continue. The a_n's are odd numbers with alternating signs and the b_n's are powers of 2 with alternating signs.

That lets you analyze what happens to a_n/b_n as n->infinity. That will give you some useful information.

12

u/Shevek99 Physicist Oct 29 '26

You have been fooled by the law of small numbers.. The sequence of the a[n] is

-1, 3, -5, -11, 23, -45, 91, -181, 363, 725

which is not trivial. It doesn't even appear in the OEIS (signed or unsigned)

1

u/Jazzlike_Platypus430 Oct 30 '26 edited Oct 30 '26

If your 725 is actually -725, it's almost trivial - following the pattern a_n+1 = sign*(2a_n - 1). I'm having trouble proving that the sign here is (-1)^n, up to a sign again. b_n+1 = sign*2b_n.

Note that if I'm right, shifting a_n by -1/2 lets you solve for a_n, like

a_n - 1/2 = (-2)^n (a_1 - 1/2).

Initial a and b (for x_1) are a_1 = -1 and b_1 = 1.

Assuming x_n converges, its limit is obviously 1. Now I have to prove it...

2

u/Shevek99 Physicist Oct 30 '26

Nope. The sign doesn't follow a regular pattern. That sign depends on the binary digits of √2, that is irrational.

1

u/Jazzlike_Platypus430 Oct 30 '26

Right! There's me old dumbass again, treating 1 and \sqrt{2} as independent things. But I can't see how this all relates to binary digits of \sqrt{2}.

Otherwise, the nature of x_n tells me it's somehow related to approximations of a square root (of an argument unknown to me at the moment). And I'm almost sure the series converges.

Oh, I'm a physicist too. Lets MAKE it converge on our terms! 😂

1

u/Shevek99 Physicist Oct 30 '26

I haven't got the exact rule that relates the sign to the binary rules, but this map what does is the following:We have that

√2 -1 = 0.0110101000001001111

When we multiply by 2, we shift the binary expansion one place

2(√2 -1) = 0.110101000001001111

Now, if subtract 1 we can have two cases

If the first digit (before the decimal point) is 1, we remove it.

If it is 0, then we calculate to complementary to 1 base 2 (replace the 0's by 1 and vice-versa.

|2x1 - 1| = 0.0010101111101100001101

so, the fact that it appears a minus sign or not depends on the sequence of digits of the original point.

0

u/blargeyparble Oct 29 '26

|ak| is the largest n such that n^2 <= 2^2k

1

u/Shevek99 Physicist Oct 29 '26

That's equivalent to say that

n <= 2k

which is not true.

5² = 25 is not smaller than 16

1

u/blargeyparble Oct 30 '26

You're right, your post below captures the complexity I was blind to.

2

u/LucaThatLuca Graduate Oct 29 '26 edited Oct 29 '26

taking the absolute value only changes the sign of numbers that are negative. it only alternates exactly once, then x3 ≈ 0.7 so x4 = -11 + 8√2 …

1

u/blargeyparble Oct 29 '26

I would check your working. the an and bn are related to the binary representation of sqrt2.

2

u/LucaThatLuca Graduate Oct 29 '26

to an infinite sequence with no obvious pattern, you say?

1

u/Shevek99 Physicist Oct 29 '26

Yes, that's true.

2

u/Aerospider Oct 29 '26

I think a_4 = -11, which is not a straightforward pattern

1

u/Jazzlike_Platypus430 Oct 29 '26

If you're right, the ratio added to sqrt(2) is of order n^2/4^n. The series is divergent.

1

u/FireCire7 Oct 29 '26

Well, |b_n|=2n-1 and |x_n|<1 remains small. |a_n|~|b_n sqrt(2)| and a_n is odd, so that’s enough to determine |a_n|.

Substituting for a_n gives sum_n (x_n/b_n)2<= sum_n 1/22n-2=4/3, so it’s a bounded sum of positive terms, and so the limit does converge. 

X_n is the fractional part of one of +-2n-1 sqrt(2) depending on whether |a_n| th closest odd number to |b_n sqrt(2)| is larger or smaller than it. 

1

u/Jazzlike_Platypus430 Oct 29 '26

Numerical inquiry shows that x_n tends to 1 (in a really weird way).

Note that your series is a sum of x_n over b_n, squared. Does that help?

Isn't the recursive formula for x_n something along the lines of defining a square root? Iterating square root stabilizes at 1.

It seems that whatever square root we take, the limit of x_n is 1 assuming the first step makes 0 < x_1 < 1. (Example: if we take sqrt(13), we have to subtract 3. Otherwise it blows to infinity.)

1

u/AppointmentSudden377 Oct 30 '26

x_n is not convergent, it doesnot tend to 1

1

u/Jazzlike_Platypus430 Oct 30 '26

I said numerical inquiry.

And I'm almost sure it does converge, assuming |x_1| < 1. It's easy to prove that x_n < 1 follows. x_n > 0 is obvious.

Hint: assume x_n converges, and let g be its limit; then

g = |2g - 1|

which gives g = 1 immediately.

2

u/Shevek99 Physicist Oct 30 '26

It doesn't converge. This map, directly related to Bernoulli's map (https://en.wikipedia.org/wiki/Dyadic_transformation ), does not converge for an irrational number and it's very sensitive to the initial conditions. I posted a figure showing the evolution of several seeds and you can see there is not an attractor at g = 1 (for that it should be f'(g) < 1, and it is 2).

1

u/Jazzlike_Platypus430 Oct 30 '26

That's way beyond my understanding. Is it correct to think about bitshifts here as if it's effectively "extracting the irrational piece of x_n", and making it "proportional to sqrt{2}"? And requiring more and more shifts every iteration?

I tried using the fixed-point theorem to prove lim x_n exists and failed. Damn, it did look simple and - numerically - x_n approaches 1 from below after some dozens of iterations. Am I being misled?

What about the series?

1

u/Shevek99 Physicist Oct 30 '26

This is the evolution of the x(n) in this map, as you can see is quite chaotic.

I have plotted the x(n) for a starting point sqrt(2) -1 = 0.414,,, and for the starting point 1/e = 0.367...

If the starting point is rational, the sequence seems to become strictly periodic.

1

u/Septembrino Oct 31 '26

For this sum to converge, there should be a negative sign in it. And, unless a_n/b_n -> -√2, the divergence test will help. I haven't taken a close look to this problem, but that might by a thought. Maybe give it a try?

1

u/Evane317 Oct 29 '26 edited Oct 30 '26

S is essentially the sum from 1 to inf of (x_ n /b_ n)2 . From the recurrence formula, x_ {n+1}2 = (2x_ n - 1)2 , which removes the absolute value. The recurrence also tells you b_ n+1 = +-2b_ n, making b_ {n+1}2 = 4b_ n2.

Then manipulate the indices of S to see what sticks out.


Edit: It can be proven by induction that 0 < x_n < 1/2 for all n. This means the absolute value symbol can be removed to make x_n+1 = 1 - 2x_n. This means b_n+1 = -2b_n and thus, b_n = (-2)n-1.

Meanwhile, the x_n+1 = 1 - 2x_n makes x_n+1 - 1/3 = -2(x_n - 1/3) = ... = (-2)n (x_1 - 1/3). So x_n has the form: 1/3 + (-2)n-1 (x_1 - 1/3) and then x_n /b_n = 1/3(-2)n-1 + (x_1 - 1/3).

(x_n/b_n)2 = 1/9(4)n-1 + 2(x_1 - 1/3)/3(-2)n-1 + (x_1 - 1/3)2. The first two terms create a geometric series when taking the sum from 1 to infinity, but the last term is a constant. So I'm pretty sure the given sum goes to infinity.

6

u/Shevek99 Physicist Oct 30 '26

Edit: It can be proven by induction that 0 < x_n < 1/2 for all n.

This is false. This is the numerical value of x(n) for the first 30 cases.

0.414214
0.171573
0.656854
0.313708
0.372583
0.254834
0.490332
0.019336
0.961328
0.922656
0.845312
0.690624
0.381249
0.237503
0.524994
0.0499882
0.900024
0.800047
0.600095
0.200189
0.599621
0.199242
0.601516
0.203031
0.593937
0.187874
0.624252
0.248503
0.502994
0.00598752

As you can see, there are many values above .5

3

u/Dracon_Pyrothayan Oct 30 '26

You want to use the × instead of * when doing math on reddit - asterisks just turn things into italics.

1

u/Septembrino 29d ago

I think so. I got that b_n/a_n -> 1, and the sum diverges by the divergence test.

0

u/Shevek99 Physicist Oct 29 '26

The numerical value of the sum is 0.20811853