login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A131343
Number of 1's in maximal Lucas representation (A130311) of n.
6
0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 3, 3, 4, 4, 4, 4, 5, 4, 4, 4, 5, 4, 4, 5, 5, 5, 5, 6, 4, 4, 5, 5, 5, 5, 6, 5, 5, 5, 6, 5, 5, 6, 6, 6, 6, 7, 5, 5, 5, 6, 5, 5, 6, 6, 6, 6, 7, 5, 5, 6, 6, 6, 6, 7, 6, 6, 6, 7, 6, 6, 7, 7, 7, 7, 8, 5, 5, 6, 6, 6, 6, 7, 6, 6, 6, 7
OFFSET
0,4
FORMULA
a(n) = A007953(A130311(n)). - Amiram Eldar, Feb 17 2022
MATHEMATICA
lazy = Select[IntegerDigits[Range[400], 2], SequenceCount[#, {0, 0}] == 0 &]; t = Total[# * Reverse@LucasL[Range[0, Length[#] - 1]]] & /@ lazy; Join[{0}, Plus@@@ lazy[[TakeWhile[Flatten[FirstPosition[t, #] & /@ Range[Max[t]]], NumberQ]]]] (* Amiram Eldar, Feb 17 2022 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Casey Mongoven, Jun 29 2007
EXTENSIONS
a(0) and more terms from Amiram Eldar, Feb 17 2022
STATUS
approved