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.

Showing 1-1 of 1 results.

A131340 Number of 0's in minimal Lucas representation (A130310) of n.

Original entry on oeis.org

1, 0, 2, 3, 2, 2, 4, 3, 3, 3, 5, 4, 4, 4, 4, 3, 3, 6, 5, 5, 5, 5, 4, 4, 5, 4, 4, 4, 7, 6, 6, 6, 6, 5, 5, 6, 5, 5, 5, 6, 5, 5, 5, 5, 4, 4, 8, 7, 7, 7, 7, 6, 6, 7, 6, 6, 6, 7, 6, 6, 6, 6, 5, 5, 7, 6, 6, 6, 6, 5, 5, 6, 5, 5, 5, 9, 8, 8, 8, 8, 7, 7, 8, 7, 7, 7, 8
Offset: 1

Views

Author

Casey Mongoven, Jun 29 2007

Keywords

Crossrefs

Programs

  • Mathematica
    a[n_] := Module[{s = {}, m = n, k = 1}, While[m > 0, If[m == 1, k = 1; AppendTo[s, k]; m = 0, If[m == 2, k = 0; AppendTo[s, k]; m = 0, While[LucasL[k] <= m, k++]; k--; AppendTo[s, k]; m -= LucasL[k]; k = 1]]]; Total[1 - IntegerDigits[Total[2^s], 2]]]; Array[a, 100] (* Amiram Eldar, Jul 05 2025 *)

Extensions

More terms from Amiram Eldar, Jul 05 2025
Showing 1-1 of 1 results.