|
|
A122975
|
|
Numbers containing no successive even ternary digits.
|
|
2
|
|
|
1, 2, 3, 4, 5, 7, 10, 12, 13, 14, 16, 21, 22, 23, 30, 31, 32, 37, 39, 40, 41, 43, 48, 49, 50, 64, 66, 67, 68, 70, 91, 93, 94, 95, 97, 111, 112, 113, 118, 120, 121, 122, 124, 129, 130, 131, 145, 147, 148, 149, 151, 192, 193, 194, 199, 201, 202, 203, 205, 210, 211, 212
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
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
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|