OFFSET
1,2
COMMENTS
a(20k)=a(50k)=0 for any k. On the other hand, a(n) is nonzero if n is not multiple of 10. - Max Alekseyev, Feb 15 2005
PROG
(PARI) {len10(m) = ceil(log(m+1)/log(10))} {reverse(n) = m=0; while(n, m=m*10+(n%10); n\=10); return(m)} {a(n) = local(m); for(s=0, 10^6, m=0; for(i=0, n-1, m=m*10^len10(s+i)+s+i); m=reverse(m); if(s==0, m*=10); if(m%n==0, return(m)); if(n%10==0, return(0)))} (Alekseyev)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Nov 16 2002
EXTENSIONS
More terms from Max Alekseyev, Feb 15 2005
STATUS
approved