|
|
A225684
|
|
Nonpalindromic numbers n with property that the sum of the reversed divisors of n is equal to n+1.
|
|
0
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Palindromes are excluded because palindromic primes automatically have this property, and palindromic nonprimes never have it.
Call a number "quasi-perfect" or "slightly excessive" if sigma(n) = 2n+1 (cf. A000203). It is conjectured that no quasi-perfect number exists. The present sequence is a variation that certainly has at least four terms.
|
|
LINKS
|
|
|
EXAMPLE
|
The divisors of 965 are 1, 5, 193, 965, and reversing and adding produces 1 + 5 + 391 + 569 = 966.
|
|
PROG
|
(Python)
from sympy import divisors
def ispal(n): s = str(n); return s == s[::-1]
def ok(n):
return not ispal(n) and n+1 == sum(int(str(d)[::-1]) for d in divisors(n))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|