cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A131343 Number of 1's in maximal Lucas representation (A130311) of n.

Original entry on oeis.org

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

Views

Author

Casey Mongoven, Jun 29 2007

Keywords

Crossrefs

Programs

  • 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 *)

Formula

a(n) = A007953(A130311(n)). - Amiram Eldar, Feb 17 2022

Extensions

a(0) and more terms from Amiram Eldar, Feb 17 2022