Golden mean base\nThe Golden mean (φ) can be used as a number base. It is known as the golden mean base, or colloquially, phinary (since the symbolism for the golden mean is the Greek letter "phi"). Any real number has a standard representation as a base-φ numeral in which only the digits 0 and 1 are used, and the digit sequence "11" is avoided. A nonstandard base-φ numeral with this digit sequence (or with other digits) can always be rewritten in standard form, relying on algebraic properties of the number φ -- most notably that φ+1 = φ2. For instance 11φ = 100φ. Despite using an irrational base, it is a remarkable fact that all integers have a unique representation as a terminating (or finite) base-φ expansion. Other numbers have standard representations in base φ, with rational numbers having recurring representations. These representations are unique, except that numbers with a terminating expansion also have a non-terminating expansion. (As they do in base 10: 2.2=2.199999...) Examples:\n
\nHighest power of φ ≤ 5 is φ3 = 1 + 2φ ≈ 4.236067977 Subtracting this from 5, we have 5 - (1 + 2φ) = 4 - 2φ ≈ 0.763932023..., with the result so far being 1000.00000...φ Highest power of φ ≤ 4 - 2φ ≈ 0.763932023... is φ-1 = -1 + 1φ ≈ 0.618033989... Subtracting this from 4 - 2φ ≈ 0.763932023..., we have 4 - 2φ - (-1 + 1φ) = 5 - 3φ ≈ 0.145898034..., with the result so far being 1000.10000...φ Highest power of φ ≤ 5 - 3φ ≈ 0.145898034... is φ-4 = 5 - 3φ ≈ 0.145898034... Subtracting this from 5 - 3φ ≈ 0.145898034..., we have 5 - 3φ - (5 - 3φ) = 0 + 0φ = 0, with the final result being 1000.1001φ. Non-uniquenessJust as with any base-n system, numbers with a terminating representation have an alternative recurring representation. In base 10, this relies on the observation that if x = 0.9999... then 10x = 9.99999... so that 9x = 9 and x=1. In base φ, the numeral 0.1010101... can be see to be equal to 1 in several ways:\n*Conversion to nonstandard form: 1 = 0.11φ = 0.1011φ = 0.101011φ = ... = 0.10101010....φ\n*Geometric series: 1.0101010...φ is equal to\n:: \n*Difference between "shifts": φ2 x - x = 10.101010...φ - 0.101010...φ = 10φ = φ so that x = φ/(φ2-1) = 1\nThis non-uniqueness is a feature of the numeration system, since both 1.0000 and 0.101010... are in standard form.Representing Rationals as Golden mean base numbersEvery rational number can be represented as a recurring base φ expansion, as can any element of the field Q[√5] = Q + √5Q, the field generated by the rational numbers and √5. Conversely any recurring (or terminating) base φ expansion is an element of Q[√5]. Some examples (with spaces added for emphasis):
.0 1 0 0 1\n ------------------------\n 1 0 0 1 ) 1 0 0.0 0 0 0 0 0 0 0\n 1 0 0 1 trade: 10000 = 1100 = 1011\n ------- so 10000-1001 = 1011-1001 = 10\n 1 0 0 0 0\n 1 0 0 1\n -------\n etc\nThe converse is also true, in that a number with a recurring base-φ representation is an element of the field Q[√5]. This follows from the observation that a recurring representation with period k involves a geometric series with ratio φ-k, which will sum to an element of Q[√5]. Addition, subtraction, multiplication\nIt is possible to adapt all the standard algorithms of base-10 arithmetic to base-φ arithmetic. There are two approaches to this:\nCalculate then convert to standard form\nTo add two φ-base numbers, add each pair of digits, without carry, and then convert the numeral to standard form. To subtract, subtract each pair of digits without borrow (borrow is a negative amount of carry), and then convert the numeral to standard form. To multiply, multiply how you normally multiply, without carry, and then convert the numeral to standard form. For example\n*2+3 = 10.01 + 100.01 = 110.02 = 110.1001 = 1000.1001\n*2×3 = 10.01 × 100.01 = 1000.1 + 1.0001 = 1001.1001 = 1010.0001\n*7-2 = 10000.0001 - 10.01 = 10010.0101 = 1110.0101 = 1001.0101 = 1000.1001Avoiding digits other than 0 and 1\nA more "native" approach is to avoid having to add digits 1+1 or to subtract 0-1. This is done by reorganising the operands into nonstandard form so that these combinations do not occur. For example\n*2+3 = 10.01 + 100.01 = 10.01 + 100.0011 = 110.0111 = 1000.1001\n*7-2 = 10000.0001 - 10.01 = 1100.0001 - 10.01 = 1011.0001 - 10.01 = 1010.1101 - 10.01 = 1000.1001\nThe subtraction seen here uses a modified form of the standard "trading" algorithm for subtraction.Division\nNo fractions (a/b, where a and b are integers, a not divisible by b) can be represented as a finite φ-base number, in other words, all finitely representable φ-base numbers are either integers or (more likely) an irrational in the field Q[√5]. Due to long division having only a finite number of possible remainders, a division of two integers (or other numbers with finite base-φ representation) will have a recurring expansion, as demonstrated above.A close relation: Fibonacci Representation\nA closely related numeration system is Fibonacci representation used for integers. In this system, only digits 0 and 1 are used and the place values of the digits are the Fibonacci numbers. As with base-φ, the digit sequence "11" is avoided by rearranging to a standard form, using the Fibonacci recurrence relation Fk+1 = Fk + Fk-1. For example\n::30 = 1×21 + 0×13 + 1×8 + 0×5 + 0×3 + 0×2 + 1×1 + 0×1 = 10100010fib.External links\n* Using Powers of Phi to represent Integers (Base Phi) |
||||||||||||||||||||||||||||||||
"Hell is a half-filled auditorium." - Robert Frost (1874-1963) |
