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.

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

Original entry on oeis.org

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, 29, 30, 31, 32, 33, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 46, 47, 48, 49, 50, 51, 52, 53, 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
Offset: 1

Views

Author

Eric Angelini and Jean-Marc Falcoz, Aug 28 2018

Keywords

Examples

			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.
		

Crossrefs

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

Programs

  • 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