login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A116543 Number of terms in greedy representation of n in terms of the Lucas numbers. 17
0, 1, 1, 1, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 2, 3, 3, 1, 2, 2, 2, 2, 3, 3, 2, 3, 3, 3, 1, 2, 2, 2, 2, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 3, 4, 4, 1, 2, 2, 2, 2, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 3, 4, 4, 2, 3, 3, 3, 3, 4, 4, 3, 4, 4, 4, 1, 2, 2, 2, 2, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 3, 4, 4, 2, 3, 3, 3, 3, 4, 4, 3, 4, 4, 4, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,6
COMMENTS
I have been studying A007895 and similar sequences and created this sequence as an analog of A007895 for the Lucas sequence (A000032).
LINKS
FORMULA
Let L(n) = max(Lucas numbers < n). Then a(0) = 0, a(n) = 1 + a(n-L(n)).
a(n) = A007953(A130310(n)). - Amiram Eldar, Feb 17 2022
EXAMPLE
a(12)=2 because 12=11+1.
MATHEMATICA
s = Reverse[Sort[Table[LucasL[n - 1], {n, 1, 22}]]];
t = Map[Length[Select[Reap[FoldList[(Sow[Quotient[#1, #2]]; Mod[#1, #2]) &, #, s]][[2, 1]], # > 0 &]] &, Range[1000]] (* Peter J. C. Moses, Oct 18 2012 *)
CROSSREFS
Sequence in context: A368594 A169818 A367816 * A256911 A347562 A359790
KEYWORD
nonn,base
AUTHOR
James E Davis, Mar 28 2006, Jun 07 2006
EXTENSIONS
Edited by N. J. A. Sloane, Aug 10 2007
a(0) added by Amiram Eldar, Feb 17 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 19:56 EDT 2024. Contains 371963 sequences. (Running on oeis4.)