OFFSET
0,3
COMMENTS
Every positive integer is a factor of a palindrome, unless it is a multiple of 10 (D. G. Radcliffe, see Links).
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..1000
P. De Geest, Smallest multipliers to make a number palindromic.
FORMULA
EXAMPLE
a(13) = 494 is the smallest multiple of 13 which is a palindrome.
PROG
(ARIBAS): maxarg := 60; stop := 200000; for n := 0 to maxarg do k := 1; test := true; while test and k < stop do m := omit_trailzeros(n*k); if test := m <> int_reverse(m) then inc(k); end; end; if k < stop then write(n*k, " "); else write(-1, " "); end; end;
(Haskell)
a062279 0 = 0
a062279 n = until ((== 1) . a136522 . a004151) (+ n) n
-- Reinhard Zumkeller, May 06 2013
CROSSREFS
KEYWORD
nonn,base,easy,nice
AUTHOR
Amarnath Murthy, Jun 17 2001
EXTENSIONS
Corrected and extended by Larry Reeves (larryr(AT)acm.org) and Klaus Brockhaus, Jun 18 2001
STATUS
approved