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!)
A318536 Integers a(n) such that [a(n) + k] is a palindrome in base 10, with k < 10. 2

%I #8 Sep 07 2018 04:48:03

%S 1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,

%T 29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,46,47,48,49,50,51,52,53,

%U 54,55,57,58,59,60,61,62,63,64,65,66,68,69,70,71,72,73,74,75,76,77,79,80,81,82,83,84,85,86,87,88,90,91

%N Integers a(n) such that [a(n) + k] is a palindrome in base 10, with k < 10.

%H Jean-Marc Falcoz, <a href="/A318536/b318536.txt">Table of n, a(n) for n = 1..10868</a>

%e 12 is not in the sequence because 22 (the closest palindromic integer > 12) is not reachable by adding an integer < 10 to 12. The integers 23, 34 or 2018 are not in the sequence for the same reason.

%o (PARI) is(n) = for(k=0, 9, my(d=digits(n+k)); if(d==Vecrev(d), return(1))); 0 \\ _Felix Fröhlich_, Sep 06 2018

%Y Cf. A318535 for an equivalent sequence [subtraction of (k < 10) instead of addition].

%K base,nonn

%O 1,2

%A _Eric Angelini_ and _Jean-Marc Falcoz_, Aug 28 2018

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 1 08:06 EDT 2024. Contains 372149 sequences. (Running on oeis4.)