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!)
A229761 Zeroless numbers n such that n and n - (product of digits of n) are both palindromes. 2
1, 2, 3, 4, 5, 6, 7, 8, 9, 252, 676, 777, 838, 868, 919, 929, 939, 15451, 15851, 25152, 25252, 25352, 25452, 25552, 25652, 25752, 25852, 25952, 29592, 36563, 51415, 51815, 52125, 52225, 52325, 52425, 52525, 52625, 52725, 52825, 52925, 63536, 92529, 93939, 97779, 1455541, 1545451, 1558551, 1594951 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Palindromes with nonzero digits in the sequence A229547.
Palindromes with an even number of digits do not appear to be in this sequence. - Derek Orr, Apr 05 2015
LINKS
EXAMPLE
929 - (9*2*9) = 767 (another palindrome). So, 929 is a member of this sequence.
PROG
(Python)
def DP(n):
..p = 1
..for i in str(n):
....p *= int(i)
..return p
def pal(n):
..r = ''
..for i in str(n):
....r = i + r
..return r == str(n)
{print(n, end=', ') for n in range(1, 10**6) if DP(n) and pal(n) and pal(n-DP(n))}
## Simplified by Derek Orr, Apr 05 2015
(PARI) pal(n)=d=digits(n); Vecrev(d)==d
for(n=1, 10^7, d=digits(n); p=prod(i=1, #d, d[i]); if(p&&pal(n)&&pal(n-p), print1(n, ", "))) \\ Derek Orr, Apr 05 2015
CROSSREFS
Sequence in context: A029966 A219324 A085134 * A004882 A306853 A308110
KEYWORD
nonn,easy,base
AUTHOR
Derek Orr, Sep 30 2013
EXTENSIONS
More terms from Derek Orr, Apr 05 2015
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 23 10:29 EDT 2024. Contains 371905 sequences. (Running on oeis4.)