Jump to content

Golden ratio base

From Wikipedia, the free encyclopedia

Template:Short description Template:No footnotes {{#invoke:Sidebar|collapsible | name = Numeral systems | class = hlist | pretitle = Part of a series on | title = Numeral systems | centered list titles = yes | expanded = | contentstyle =

| list1name = Place-value notation | list1title = Place-value notation | list1 = {{#invoke:Sidebar|collapsible | child = yes | contentclass = hlist | centered list titles = yes | expanded =

| list1name = Hindu-Arabic numeral system | list1title = Hindu–Arabic numerals | list1 =



| list2name = American | list2title = American | list2 =

| list3name = Other systems | list3title = Other systems | list3 =


Ancient

Post-classical

Contemporary

| list4name = By radix/base | list4title = By radix/base | list4 =

Common radices/bases

Non-standard radices/bases

}}

| list2name = Sign-value notation | list2title = Sign-value notation | list2 =

{{#invoke:Sidebar|collapsible | child = yes | contentclass = hlist | centered list titles = yes | expanded =

|list1name= Non-alphabetic |list1title= Non-alphabetic |list1=

Contemporary East Asian
Historic East Asian

Other non-alphabetic

|list2name= Alphabetic |list2title= ; Alphabetic |list2=

}}

| belowstyle = border-top:1px solid #aaa;border-bottom:1px solid #aaa; | below = List of numeral systems

}} Golden ratio base is a non-integer positional numeral system that uses the golden ratio (the irrational number <math>\tfrac12\bigl(1+\sqrt{5}\bigr)</math> Template:Math symbolized by the Greek letter φ) as its base. It is sometimes referred to as base-φ, golden mean base, phi-base, or, colloquially, phinary. Any non-negative real number can be represented as a base-Template:Mvar numeral using only the digits Template:Math and Template:Math, and avoiding the digit sequence "Template:Math" – this is called a standard form. A base-Template:Mvar numeral that includes the digit sequence "Template:Math" can always be rewritten in standard form, using the algebraic property of the base Template:Mvar that Template:Math. For instance, Template:Math.

Despite using an irrational number base, when using standard form, all non-negative integers have a unique representation as a terminating (finite) base-Template:Mvar expansion. The set of numbers which possess a finite base-Template:Mvar representation is the ring Template:Math of golden integers; it plays the same role in this numeral systems as dyadic rationals play in binary numbers, providing a possibility to multiply.

Other numbers have standard representations in base-Template:Mvar, with rational numbers having recurring representations. These representations are unique, except that numbers with a terminating expansion also have a non-terminating expansion. For example, Template:Math in base-Template:Mvar just as [[0.999...|Template:Math]] in decimal.

Examples

Decimal Powers of Template:Mvar Base Template:Mvar
Template:Math Template:Math Template:Mono
Template:Math Template:Math Template:Mono
Template:Math Template:Math Template:Mono
Template:Math Template:Math Template:Mono
Template:Math Template:Math Template:Mono
Template:Math Template:Math Template:Mono
Template:Math Template:Math Template:Mono
Template:Math Template:Math Template:Mono
Template:Math Template:Math Template:Mono
Template:Math Template:Math Template:Mono

Writing golden ratio base numbers in standard form

In the following example of conversion from non-standard to standard form, the notation 1 is used to represent the signed digit Template:Math.

Template:Math is not a standard base-Template:Mvar numeral, since it contains a "Template:Math" and additionally a "Template:Math" and a "Template:Math" Template:Math, which are not "Template:Math" or "Template:Math".

To put a numeral in standard form, we may use the following substitutions: Template:Math, Template:Math, Template:Math, Template:Math. The substitutions may be applied in any order we like, as the result will be the same. Below, the substitutions applied to the number on the previous line are on the right, the resulting number on the left.

<math> \begin{alignat}{4} 211.0\underline{1}0_\varphi &{}={}& 211&.\underline{1}01_\varphi \qquad &0\underline{1}0 &{}\rightarrow{}& \underline{1}01 \\ &{}={}& 210&.011_\varphi &1\underline{1}0 &\rightarrow &001 \\ &{}={}& 1011&.011_\varphi &200 &{}\rightarrow{}& 1001 \\ &{}={}& 1100&.100_\varphi &011 &{}\rightarrow{}& 100 \\ &{}={}& 10000&.1_\varphi &011 &{}\rightarrow{}& 100\\ \end{alignat} </math>

Any positive number with a non-standard terminating base-Template:Mvar representation can be uniquely standardized in this manner. If we get to a point where all digits are "Template:Math" or "Template:Math", except for the first digit being negative, then the number is negative. (The exception to this is when the first digit is negative one and the next two digits are one, like Template:Math.) This can be converted to the negative of a base-Template:Mvar representation by negating every digit, standardizing the result, and then marking it as negative. For example, use a minus sign, or some other significance to denote negative numbers.

Representing integers as golden ratio base numbers

We can either consider our integer to be the (only) digit of a nonstandard base-Template:Mvar numeral, and standardize it, or do the following:

Template:Math, Template:Math and Template:Math. Therefore, we can compute

Template:Math,
Template:Math

and

Template:Math.

So, using integer values only, we can add, subtract and multiply numbers of the form Template:Math, and even represent positive and negative integer powers of Template:Mvar.

Template:Math if and only if Template:Math. If one side is negative, the other positive, the comparison is trivial. Otherwise, square both sides, to get an integer comparison, reversing the comparison direction if both sides were negative. On squaring both sides, the <math>\sqrt{5}</math> is replaced with the integer Template:Math.

So, using integer values only, we can also compare numbers of the form Template:Math.

  1. To convert an integer Template:Mvar to a base-Template:Mvar number, note that Template:Math.
  2. Subtract the highest power of Template:Mvar, which is still smaller than the number we have, to get our new number, and record a "Template:Math" in the appropriate place in the resulting base-Template:Mvar number.
  3. Unless our number is Template:Math, go to step 2.
  4. Finished.

The above procedure will never result in the sequence "Template:Math", since Template:Math, so getting a "Template:Math" would mean we missed a "Template:Math" prior to the sequence "Template:Math".

Start, e.g., with the integer Template:Math, with the result so far being Template:Math

Highest power of Template:Math is Template:Math Template:Math Template:Math

Subtracting this from Template:Math, we have Template:Math Template:Math Template:Math, the result so far being Template:Math

Highest power of Template:Math is Template:Math

Subtracting this from Template:Math, we have Template:Math Template:Math Template:Math, the result so far being Template:Math

Highest power of Template:Math Template:Math is Template:Math Template:Math Template:Math

Subtracting this from Template:Math Template:Math, we have Template:Math Template:Math, with the final result being Template:Math.

Non-uniqueness

Just as with any base-Template:Mvar system, numbers with a terminating representation have an alternative recurring representation. In base-10, this relies on the observation that [[0.999...|Template:Math]]. In base-Template:Mvar, the numeral Template:Math can be seen to be equal to 1 in several ways:

This non-uniqueness is a feature of the numeration system, since both Template:Math and Template:Math are in standard form.

In general, the final Template:Math digit of any number in base-Template:Mvar can be replaced with a recurring Template:Math without changing the value of that number.

Representing rational numbers as golden ratio base numbers

Every non-negative rational number can be represented as a recurring base-Template:Mvar expansion, as can any non-negative element of the golden field Template:Math, the field generated by the rational numbers and square root of 5. Conversely any recurring (or terminating) base-Template:Mvar expansion is a non-negative element of Template:Math. For recurring decimals, the recurring part has been overlined:

The justification that a rational gives a recurring expansion is analogous to the equivalent proof for a base-Template:Mvar numeration system (Template:Math). Essentially in base-Template:Mvar long division there are only a finite number of possible remainders, and so once there must be a recurring pattern. For example, with Template:Math Template:Math long division looks like this (note that base-Template:Mvar subtraction may be hard to follow at first):

                .0 1 0 0 1
         ________________________
 1 0 0 1 ) 1 0 0.0 0 0 0 0 0 0 0
             1 0 0 1                        trade: 10000 = 1100 = 1011
             -------                            so 10000 − 1001 = 1011 − 1001 = 10
                 1 0 0 0 0
                   1 0 0 1
                   -------
                       etc.

The converse is also true, in that a number with a recurring base-Template:Mvar; representation is an element of the field Template:Math. This follows from the observation that a recurring representation with period Template:Mvar involves a geometric series with ratio Template:Math, which will sum to an element of Template:Math.

Representing irrational numbers of note as golden ratio base numbers

The base-Template:Mvar representations of some interesting numbers:

Addition, subtraction, and multiplication

It is possible to adapt all the standard algorithms of base-10 arithmetic to base-Template:Mvar arithmetic. There are two approaches to this:

Calculate, then convert to standard form

For addition of two base-Template:Mvar numbers, add each pair of digits, without carry, and then convert the numeral to standard form. For subtraction, subtract each pair of digits without borrow (borrow is a negative amount of carry), and then convert the numeral to standard form. For multiplication, multiply in the typical base-10 manner, without carry, then convert the numeral to standard form.

For example,

Avoid digits other than Template:Math and Template:Math

A more "native" approach is to avoid having to add digits Template:Math or to subtract Template:Math. This is done by reorganising the operands into nonstandard form so that these combinations do not occur. For example,

The subtraction seen here uses a modified form of the standard "trading" algorithm for subtraction.

Division

No non-integer rational number can be represented as a finite base-Template:Mvar number. In other words, all finitely representable base-Template:Mvar numbers are golden integers in Template:Math. Due to long division having only a finite number of possible remainders, a division of two golden integers will have a recurring expansion, as demonstrated above.

Relationship with Fibonacci coding

{{#invoke:Labelled list hatnote|labelledList|Main article|Main articles|Main page|Main pages}}

Fibonacci coding is a closely related numeration system used for integers. In this system, only digits Template:Math and Template:Math are used and the place values of the digits are the Fibonacci numbers. As with base-Template:Mvar, the digit sequence "Template:Math" is avoided by rearranging to a standard form, using the Fibonacci recurrence relation Template:Math Template:Math. For example,

Template:Math Template:Math.

Practical usage

It is possible to mix base-Template:Mvar arithmetic with Fibonacci integer sequences. The sum of numbers in a General Fibonacci integer sequence that correspond with the nonzero digits in the base-Template:Mvar number, is the multiplication of the base-Template:Mvar number and the element at the zero-position in the sequence. For example:

See also

References

Template:Metallic ratios