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.

A354886 Numbers that are palindromes in both ternary and balanced ternary representations with representations that are different.

This page as a plain text file.
%I A354886 #15 Jun 16 2022 02:33:34
%S A354886 16,52,160,484,1312,1456,3904,4372,11680,12688,13120,35008,37960,
%T A354886 39364,104992,106288,113776,116800,118096,314944,319156,341224,350080,
%U A354886 354292,944800,948688,957760,1023568,1027456,1049920,1058992,1062880,2834368,2847004,2873572
%N A354886 Numbers that are palindromes in both ternary and balanced ternary representations with representations that are different.
%C A354886 Is a(n) == 16 (mod 18) for all n?
%H A354886 Amiram Eldar, <a href="/A354886/b354886.txt">Table of n, a(n) for n = 1..10000</a>
%F A354886 a(n) = A091077(n) / 4. - _Hugo Pfoertner_, Jun 10 2022
%e A354886 16 is a term since its ternary representation is 121 and its balanced ternary representation (with 2 standing for the -1 digit) is 1221, and both are palindromes.
%t A354886 Select[Range[0, 3*10^6], PalindromeQ[d3 = IntegerDigits[#, 3]] && PalindromeQ[db3 = balTernDigits[#]] && d3 != db3 &] (* using balTernDigits by _Robert G. Wilson v_ at A134027 *)
%Y A354886 Equals A354885 \ A005836.
%Y A354886 Cf. A007089, A014190, A091077, A134027, A140267.
%K A354886 nonn,base
%O A354886 1,1
%A A354886 _Amiram Eldar_, Jun 10 2022