A222809 Number of n-digit numbers N such that the reversal of N divides N but is different from N.
0, 9, 21, 122, 228, 1167, 2123, 11270, 20440, 110971, 201475, 1103592, 2005388
Offset: 1
Examples
Some of the smallest solutions are: [10, 20, 30, 40, 50, 60, 70, 80, 90] (so a(2) = 9), [100, 110, 200, 220, 300, 330, 400, 440, 500, 510, 540, 550, 600, 660, 700, 770, 800, 810, 880, 900, 990] (so a(3) = 21), [1000, 1010, 1100, 1110, 1210, 1310, 1410, ...].
Programs
-
PARI
a(n) = sum(i=10^(n-1), 10^n-1, (irev=eval(concat(Vecrev(Str(i))))) && irev!=i && !(i % irev)); \\ Michel Marcus, Jul 03 2014
Extensions
a(7)-a(12) from Lars Blomberg, Jul 03 2014
a(13) from Giovanni Resta, Aug 15 2019
Comments