cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A263307 Numbers without consecutive repeated digits in base 2 and in base 3.

Original entry on oeis.org

1, 2, 5, 10, 21, 1365, 2730
Offset: 1

Views

Author

Robin Powell, Oct 13 2015

Keywords

Comments

Intersection of A000975 and A031941. - Michel Marcus, Oct 14 2015
It seems likely that there are no further terms.

Examples

			10 is 1010 in base 2 and 101 in base 3; no two of the same digit are next to one another and so 10 is a term.
Similarly 21 is 10101 in base 2 and 210 in base 3 so it is also a term.
		

Crossrefs

Cf. A000975 (base 2), A031941 (base 3).

Programs

  • PARI
    isokd(d) = {dd = vector(#d-1, k, abs(d[k+1]-d[k])); if (#dd, vecmin(dd), 1);}
    isok(n) = isokd(binary(n)) && isokd(digits(n, 3)); \\ Michel Marcus, Oct 14 2015