OFFSET
0,2
LINKS
Michael S. Branicky, Table of n, a(n) for n = 0..710
EXAMPLE
48 has 10 divisors: {1, 2, 3, 4, 6, 8, 12, 16, 24, 48}, only 12, 16, 24 and 48 are nonpalindromic; no positive integer smaller than 48 has four nonpalindromic divisors, hence a(4) = 48.
MATHEMATICA
f[n_] := DivisorSum[n, 1 &, ! PalindromeQ[#] &]; seq[len_, nmax_] := Module[{s = Table[0, {len}], c = 0, n = 1, i}, While[c < len && n < nmax, i = f[n] + 1; If[i <= len && s[[i]] == 0, c++; s[[i]] = n]; n++]; s]; seq[50, 10^5] (* Amiram Eldar, Jul 14 2022 *)
PROG
(PARI) isnp(n) = my(d=digits(n)); d!=Vecrev(d); \\ A029742
a(n) = my(k=1); while (sumdiv(k, d, isnp(d)) != n, k++); k; \\ Michel Marcus, Jul 14 2022
(Python)
from sympy import divisors
from itertools import count, islice
def c(n): s = str(n); return s != s[::-1]
def f(n): return sum(1 for d in divisors(n, generator=True) if c(d))
def agen():
n, adict = 0, dict()
for k in count(1):
fk = f(k)
if fk not in adict: adict[fk] = k
while n in adict: yield adict[n]; n += 1
print(list(islice(agen(), 51))) # Michael S. Branicky, Jul 27 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Jul 14 2022
EXTENSIONS
More terms from Michel Marcus, Jul 14 2022
STATUS
approved