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!)
A229971 Palindromes n whose product of proper divisors is a palindrome > 1 and not equal to n. 0
4, 9, 121, 212, 1001, 10201, 110011, 1100011, 10100101, 11000011, 101000101, 110000011, 1010000101, 1100000011, 10000000001, 10100000101, 1000000000001, 10000000000001, 10011100000111001, 10022212521222001, 10100101110100101, 10101100100110101 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Palindromes in the sequence A229970.
LINKS
FORMULA
A229970 INTERSECT A002113.
EXAMPLE
The product of the proper divisors of 4 is 2 (also a palindrome, different from 4). So, 4 is a member of this sequence.
The proper divisors of 1001 are 1, 7, 11, 13, 77, 91, and 143. 1*7*11*13*77*91*143 = 1001^3 = 1003003001 (also a palindrome, different from 1001). So, 1001 is a member of this sequence.
MATHEMATICA
palQ[n_] := Block[{d = IntegerDigits@ n}, d == Reverse@ d]; fQ[n_] := Block[{s = Times @@ Most@ Divisors@ n}, And[palQ@ s, s > 1, s != n]]; Select[Select[Range@ 1000000, palQ], fQ] (* Michael De Vlieger, Apr 06 2015 *)
ppdpQ[n_]:=Module[{pp=Times@@Most[Divisors[n]]}, AllTrue[{n, pp}, PalindromeQ]&&pp>1&&pp!=n]; Select[Range[115*10^4], ppdpQ] (* The program generates the first 8 terms of the sequence. *) (* Harvey P. Dale, Sep 18 2022 *)
PROG
(Python)
from sympy import divisors
def PD(n):
p = 1
for i in divisors(n):
if i != n:
p *= 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 pal(n) and pal(PD(n)) and (PD(n)-1) and PD(n)-n}
# Simplified by Derek Orr, Apr 05 2015
# Syntax error fixed by Robert C. Lyons, Mar 17 2023
(PARI) pal(n)=d=digits(n); Vecrev(d)==d
for(n=1, 10^6, D=divisors(n); p=prod(i=1, #D-1, D[i]); if(pal(n)&&pal(p)&&p-1&&p-n, print1(n, ", "))) \\ Derek Orr, Apr 05 2015
CROSSREFS
Sequence in context: A156317 A115676 A115667 * A158642 A131760 A002779
KEYWORD
nonn,base
AUTHOR
Derek Orr, Oct 04 2013
EXTENSIONS
a(7)-a(22) from Giovanni Resta, Oct 06 2013
Name edited by 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 19 02:45 EDT 2024. Contains 371782 sequences. (Running on oeis4.)