Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A118240
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A118240 The part of n in base phi left of the decimal, using a least-greedy algorithm representation. +0
2
0, 0, 1, 10, 11, 101, 111, 1010, 1011, 1101, 1110, 1111, 10101, 10111, 11010, 11011, 11101, 11111, 101010, 101011, 101101, 101110, 101111, 110101, 110111, 111010, 111011, 111101, 111110, 111111, 1010101, 1010111, 1011010, 1011011, 1011101 (list; graph; listen)
OFFSET

0,4

COMMENT

Uses least-greedy algorithm (start with largest possible power of phi, writing a 1 only when required, then work downward)

constant (float): phi=(sqrt(5)+1)/2; variable (float): lphi=phi^floor[log(n)/log(phi)]; variable (float): rem=n; variable (integer): count=0; loop: while lphi>1 (count=count*10; lphi=lphi/phi; if(rem > lphi*phi) { rem=rem-lphi; count++;}}

LINKS

R. Knott, Phigits and the Base Phi representation.

EXAMPLE

6 = 111.01101010... in base phi using the least-greedy

algorithm. The part to the left of the decimal is a(6) = 111.

CROSSREFS

Cf. A055778, A104605, A118241, A105424.

Sequence in context: A077813 A104326 A037090 this_sequence A157845 A086084 A004676

Adjacent sequences: A118237 A118238 A118239 this_sequence A118241 A118242 A118243

KEYWORD

nonn

AUTHOR

Graeme McRae (g_m(AT)mcraefamily.com), Apr 17, 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 10 00:48 EST 2009. Contains 170565 sequences.


AT&T Labs Research