OFFSET
1,1
FORMULA
Conjectures from Colin Barker, May 20 2019: (Start)
G.f.: x*(51 + 49*x + 49*x^2 + 49*x^3 + 49*x^4 + 49*x^5 + 49*x^6 + 12*x^7 - 14*x^8) / ((1 - x)^2*(1 + x)*(1 + x^2)*(1 + x^4)).
a(n) = a(n-1) + a(n-8) - a(n-9) for n>9.
(End)
MATHEMATICA
okQ[n_]:=MemberQ[Partition[IntegerDigits[n, 7], 2, 1], {0, 2}] && !MemberQ[Partition[IntegerDigits[n-1, 7], 2, 1], {0, 2}]; Select[Range[2000], okQ] (* Harvey P. Dale, Feb 02 2011 *)
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 7], {0, 2}]>0, 1, 0], {n, 2000}], {0, 1}][[All, 2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jul 09 2018 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved