OFFSET
2,2
COMMENTS
The sequence begins with a(2) = 1 since at least two segments are needed to form any digit. It requires two segments to form the digit 1 and three segments to form the digit 7.
All other digits use more than 3 segments.
LINKS
FORMULA
a(n+2) = 10*a(n) + 1 for n >= 2.
a(2*n) = (10^n - 1)/9 ; a(2*n + 1) = ((10^n - 1)/9) + 6*10^(n - 1).
From Stefano Spezia, Sep 29 2020: (Start)
G.f.: x^2*(1 + 6*x - 6*x^2)/(1 - x - 10*x^2 + 10*x^3).
a(n) = a(n-1) + 10*a(n-2) - 10*a(n-3) for n > 4. (End)
MATHEMATICA
CoefficientList[Series[(1 + 6*x - 6*x^2)/(1 - x - 10*x^2 + 10*x^3), {x, 0, 30}], x] (* Wesley Ivan Hurt, Nov 07 2020 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Suren Suren, Sep 29 2020
EXTENSIONS
More terms from Stefano Spezia, Sep 29 2020
STATUS
approved