News for hackers. Stuff that matters.
Re:Golden powers are nearly integers by Sniffnoy on Wednesday March 22, 2017 @05:54PM (#13935361)
Specifically, they're nearly Lucas numbers. For those unfamiliar, the Lucas numbers are defined by the recursion L_0 = 2, L_1 = 1, and L_n = L_{n-1} + L_n. (I.e., the Fibonacci recursion, but with different starting values.) They can also be given explicitly by L_n = phi^n + (-1/phi)^n. Since (-1/phi)^n goes rapidly to zero, phi^n will be very close to L_n. More specifically, for n>=2, (1/phi)^n < 1/2, so L_n will be the nearest integer to phi^n.

The Fibonacci numbers, meanwhile, can be given by the formula F_n = (phi^n - (-1/phi)^n) / sqrt(5). So a similar thing holds for them.

More generally, phi is a Pisot number: https://en.wikipedia.org/wiki/Pisot%E2%80%93Vijayaraghavan_n... Any Pisot number will have its powers approach integers at an exponential rate. (In that, the distance to the nearest integer decreases exponentially.)

Re:Golden powers are nearly integers by jacobolus on Wednesday March 22, 2017 @06:08PM (#13935463)
Another way to get at this:

  φ^1 = φ
  φ^2 = φ + 1 [this is the definition of φ]
  φ^3 = φ(φ + 1) = 2φ + 1
  φ^4 = φ(2φ + 1) = 3φ + 2
  φ^5 = φ(3φ + 2) = 5φ + 3
  φ^6 = φ(5φ + 3) = 8φ + 5
  ...
  φ^n = F(n)φ + F(n-1)
Note that F(n+1)/F(n) → φ as n → ∞. Or flipped around, F(n)φ → F(n+1).

So φ^n = F(n)φ + F(n-1) → F(n+1) + F(n-1) = L(n) as n → ∞. This gets close to being an integer because F(n+1) and F(n-1) are both integers.

Re:Golden powers are nearly integers by adrianratnapala on Thursday March 23, 2017 @05:08AM (#13938268)
I'm almost with you, but you need a bit more.

To show what we want, we must prove the stronger condition that F(n)φ - F(n+1) → 0. Merely knowing that F(n+1)/F(n) → φ only shows that the difference grows more slowly than F(n).

Re:Golden powers are nearly integers by winstonsmith on Thursday March 23, 2017 @09:23AM (#13939470)
>To show what we want, we must prove the stronger condition that F(n)φ - F(n+1) → 0.

Noting that {F(n+1)/F(n)} is the sequence of convergents of the continued fraction expansion of φ, your stronger condition follows from Theorem 5 at https://en.wikipedia.org/wiki/Continued_fraction .

Re:Golden powers are nearly integers by tgb on Wednesday March 22, 2017 @06:14PM (#13935505)
I've always enjoyed that formula for the Fibonacci numbers, primarily because it's so unintuitive that the right hand side would actually even be an integer. It's a fun exercise to prove that (without resorting to the fact that the Fibonacci numbers are obviously integers). Hint: start with -1/phi = 1-phi and use phi=(sqrt(5)+1)/2.
Re:Golden powers are nearly integers by btilly on Wednesday March 22, 2017 @07:18PM (#13935983)
That is a special case of an even more amazing result.

Given a polynomial P(x), any expression that can be written as a symmetric polynomial in the roots of P, can be written as a polynomial in the coefficients of P. See https://en.wikipedia.org/wiki/Elementary_symmetric_polynomia... for more.

This applies to arbitrary rings. So if P(x) and Q(x) are both polynomials, then any polynomial which is symmetric in the roots of P(x) and also symmetric in the roots of Q(x) can be written as polynomials in the coefficients of Q(x) and P(x). Therefore, for example, (x-sqrt(2)-sqrt(3))(x-sqrt(2)+sqrt(3))(x+sqrt(2)-sqrt(3))(x+sqrt(2)+sqrt(3)) will work out to be a polynomial in the coefficients of x^2-2 and x^2-3. It will therefore be an integer polynomial with those 4 roots.

This is actually the original way in which people proved that the algebraic integers formed a ring.

Re:Golden powers are nearly integers by jacobolus on Wednesday March 22, 2017 @06:28PM (#13935613)
> start with -1/phi = 1-phi and use phi=(sqrt(5)+1)/2.

This is the same fact twice. (Well, the second part is just one of the two roots of the polynomial equation x^2 = x + 1.)

Re:Golden powers are nearly integers by tgb on Wednesday March 22, 2017 @07:34PM (#13936094)
Doesn't mean you can't use both of them!
Re:Golden powers are nearly integers by nurettin on Wednesday March 22, 2017 @09:14PM (#13936674)
Proof by hindsight!
Re:Golden powers are nearly integers by posterboy on Thursday March 23, 2017 @02:43PM (#13942803)
fact comes from to do ... thoese aren't the same operations being done
Re:Golden powers are nearly integers by zeeZ on Thursday March 23, 2017 @07:06AM (#13938748)
> L_n = L_{n-1} + L_n

L_{n-1} = 0 ;-)

You probably meant L_n = L_{n-2} + L_n{n-1}

Re:Golden powers are nearly integers by Sniffnoy on Saturday March 25, 2017 @03:32AM (#13954500)
Thanks! This is what happens when you decide to switch indices, I guess. Unfortunately seems I can no longer edit the comment.
Re:Golden powers are nearly integers by 0xCAFEFARE on Friday March 24, 2017 @03:52AM (#13947348)
Dude seriously explain in simpleton...?