OFFSET
1,1
LINKS
Georg Fischer, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = 512*(n-7)/9 + 376 when n == 7 mod 9; otherwise a(n) = 64*(n - floor((n+1)/9) - 1) + 47. - Bob Selcoe, Apr 01 2016
MATHEMATICA
SequencePosition[Table[If[SequenceCount[IntegerDigits[n, 8], {5, 7}]>0, 1, 0], {n, 2500}], {0, 1}][[;; , 2]] (* Harvey P. Dale, Jul 10 2024 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Linear recurrence removed and terms a(54), a(126) etc. corrected by Georg Fischer, Jun 27 2019
STATUS
approved