OFFSET
1,3
COMMENTS
LINKS
Index entries for linear recurrences with constant coefficients, signature (1, 10, -10).
FORMULA
a(n) = 10*a(n-2) + 8 for n >= 5.
a(n) = A250256(n), n<>2.
From Chai Wah Wu, Jul 12 2016: (Start)
a(n) = a(n-1) + 10*a(n-2) - 10*a(n-3) for n > 5.
G.f.: x*(-60*x^4 + 70*x^3 - 2*x^2 - x + 1)/((x - 1)*(10*x^2 - 1)). (End)
EXAMPLE
The integer 68, whose decimal digits have 3 holes, divides the plane into 4 regions. No smaller nonnegative integer does this, so a(4) = 68.
MATHEMATICA
Join[{1, 0, 8}, RecurrenceTable[{a[1]==68, a[2]==88, a[n]==10 a[n-2] + 8}, a, {n, 20}]] (* Vincenzo Librandi, Nov 16 2014 *)
PROG
(Magma) I:=[1, 0, 8, 68, 88]; [n le 5 select I[n] else 10*Self(n-2)+8: n in [1..40]]; // Vincenzo Librandi, Nov 16 2014
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Rick L. Shepherd, Nov 15 2014
STATUS
approved