The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A115888 Palindromes equal to the sum of a prime number with its index. 2

%I #20 Jun 17 2022 03:25:25

%S 3,5,8,11,101,242,383,424,454,545,585,606,666,676,757,949,2552,3443,

%T 3663,4664,5445,6006,6886,9339,10001,10601,11411,12321,15551,15651,

%U 17871,17971,18281,21412,22622,22922,24642,24942,25752,26762,28582

%N Palindromes equal to the sum of a prime number with its index.

%H Harvey P. Dale, <a href="/A115888/b115888.txt">Table of n, a(n) for n = 1..1000</a>

%e 666 = prime(103)+103.

%t Select[Total/@Table[{n,Prime[n]},{n,3200}],PalindromeQ] (* Requires Mathematica version 10 or later *) (* _Harvey P. Dale_, Jun 03 2017 *)

%o (PARI) ispal(n) = my(e=digits(n));e == Vecrev(e) \\ A002113

%o for(k=1,10^6, b=k+prime(k);if(ispal(b),print1(b,", "))) \\ _Alexandru Petrescu_, Jun 15 2022

%Y Cf. A014688, A115884.

%Y Subsequence of A002113.

%K nonn,base

%O 1,1

%A _Giovanni Resta_, Feb 06 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 30 03:30 EDT 2024. Contains 372957 sequences. (Running on oeis4.)