login
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