OFFSET
1,1
FORMULA
a(n) = 9(d-2p-b) where d is the number of digits in the reversal number, p is the number of repeating units of either 8712 or 9801 (they can be split in the middle of the sequence as long as all 4 numbers appear in the correct order), and b is the number of digits separating two complete "units" (must appear between two complete units and not in between 1 incomplete unit).
EXAMPLE
a(1)=digit sum of 8712=8+7+1+2=18, a(3)=digit sum of 87912=8+7+9+1+2=27.
PROG
(Python)
A243097 = []
for n in range(1, 10**7):
....if n % 10:
........s1 = str(n)
........s2 = s1[::-1]
........if s1 != s2 and not n % int(s2):
............A243097.append(sum(int(d) for d in s1))
# Chai Wah Wu, Sep 05 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Sam Mathers, Aug 18 2014
EXTENSIONS
More terms from Michel Marcus, Aug 25 2014
STATUS
approved