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!)
A109871 Number of ways a number can be expressed as the difference of two palindromes, or -1 if this number if infinite. 1
9, -1, 8, 7, 6, 5, 4, 3, 2, 82, -1, 2, 2, 1, 1, 1, 1, 1, 1, 73, 17, 10, 1, 2, 1, 1, 1, 1, 1, 64, 25, 3, 8, 1, 2, 1, 1, 1, 1, 55, 33, 3, 2, 7, 1, 2, 1, 1, 1, 46, 41, 3, 2, 2, 6, 1, 2, 1, 1, 37, 49, 3, 2, 2, 2, 5, 1, 2, 1, 28, 57, 3, 2, 2, 2, 2, 4, 1, 2, 19, 65, 3, 2, 2, 2, 2, 2, 3, 1, 11, 73, 4, 3, 3, 3, 3, 3, 3, 3, 812 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
2 = (10^k+1)-(10^k-1) where (10^k+1) and (10^k-1) are palindromes for all k. 11 = (2*10^k +2)-(2*10^k-9)where (2*10^k+2) and (2*10^k-9) are palindromes for all k. Hence a(2) = a(11)are denoted by -1. Note: terms should be checked for any errors.
The differences that occur infinitely many times are 2 and 11*10^k (k >= 0). - David Wasserman, Apr 03 2008
LINKS
EXAMPLE
a(2) = a(11) = -1 as 2 and 11 can be so expressed infinitely many times.
a(22) = 9, 22 = 22-0, 33-11, 44-22, 55-33, 66-44, 77-55, 88-66, 99-77, 121-99.
a(22) = 10 because 22 = 22-0, 33-11, 44-22, 55-33, 66-44, 77-55, 88-66, 99-77, 121-99 and 1001-979.
CROSSREFS
Cf. A109870.
Sequence in context: A011111 A301815 A191502 * A087500 A238168 A340551
KEYWORD
base,sign
AUTHOR
Amarnath Murthy, Jul 09 2005
EXTENSIONS
Corrected and extended by David Wasserman, Apr 03 2008
STATUS
approved

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 April 24 15:42 EDT 2024. Contains 371960 sequences. (Running on oeis4.)