OFFSET
1,2
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
MATHEMATICA
nsetdQ[n_]:=With[{idn3=If[EvenQ[#], 1, 0]&/@IntegerDigits[n, 3]}, SequenceCount[ idn3, {1, 1}]==0]; Select[Range[300], nsetdQ] (* Harvey P. Dale, Oct 10 2022 *)
PROG
(PARI) is(n)=while(n>5, if(bitand(1<<(n%9), 325), return(0)); n\=3); 1 \\ Charles R Greathouse IV, Feb 15 2017
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Reinhard Zumkeller, Sep 21 2006
EXTENSIONS
Named edited by Charles R Greathouse IV, Feb 15 2017
STATUS
approved