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.

A056130 Palindromic primes in bases 2 and 4.

This page as a plain text file.
%I A056130 #8 Nov 07 2015 04:13:19
%S A056130 3,5,17,257,5189,65537,83269,86293,1053953,1066049,1134929,1311749,
%T A056130 1380629,16864513,17060929,17909009,18153809,18171217,21251141,
%U A056130 22103317,289423441,290455889,290735441,336662789,336925957,340873541
%N A056130 Palindromic primes in bases 2 and 4.
%C A056130 Intersection of A016041 and A029972.
%C A056130 Subsequence of primes of A097856. - _Michel Marcus_, Nov 07 2015
%H A056130 Chai Wah Wu, <a href="/A056130/b056130.txt">Table of n, a(n) for n = 1..1000</a>
%e A056130 5 is 101 (base 2) and 11 (base 4), that are both palindromic.
%t A056130 Do[If[PrimeQ[n], t = RealDigits[n, 4][[1]]; If[FromDigits[t] == FromDigits[Reverse[t]], s = RealDigits[n, 2][[1]]; If[FromDigits[s] == FromDigits[Reverse[s]], Print[n]]]], {n, 1, 10^8, 2}]
%Y A056130 Cf. A016041 and A029972.
%K A056130 nonn,base
%O A056130 1,1
%A A056130 _Robert G. Wilson v_, Jul 29 2000