OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) ~ 16n. - Charles R Greathouse IV, Jul 16 2011
MATHEMATICA
seqMemberQ[lst_, seq_]:=MemberQ[Partition[lst, Length[seq], 1], seq]
m16Q[n_]:=seqMemberQ[IntegerDigits[n], {1, 6}]
Select[16Range[1000], m16Q] (* Harvey P. Dale, Feb 26 2011 *)
Select[16Range[1000], SequenceCount[IntegerDigits[#], {1, 6}]>0&] (* The program uses the SequenceCount function from Mathematica version 10 *) (* Harvey P. Dale, Apr 12 2016 *)
PROG
(PARI) is(n)=if(n%16, return(0)); n=eval(Vec(Str(n))); for(i=2, #n, if(n[i]==6&&n[i-1]==1, return(1))); 0
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Reinhard Zumkeller, Jul 21 2006
EXTENSIONS
Corrected by Harvey P. Dale, Feb 26 2011
STATUS
approved