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.

A343129 Numbers that are palindromes in base 3/2.

Original entry on oeis.org

0, 1, 2, 5, 8, 17, 35, 170, 278, 422, 494
Offset: 0

Views

Author

Wyatt Powers, Apr 05 2021

Keywords

Comments

Next term >= 10^12. - Joerg Arndt, Apr 06 2021
Next term > 2^64. - David Radcliffe, Dec 10 2021

Examples

			    0:  0
    1:  1
    2:  2
    5:  22
    8:  212
   17:  21012
   35:  212212
  170:  2120220212
  278:  21221112212
  422:  2101100011012
  494:  2120010100212
		

Crossrefs

Cf. A024629.

Programs

  • Mathematica
    (* All terms <= 500: *)
    b = {};
    a[n_] := If[n < 1, 0, a[Quotient[n, 3] 2] 10 + Mod[n, 3]];
    Do[If[PalindromeQ[a[n]], AppendTo[b, n], Nothing], {n, 0, 500}];
    b