OFFSET
2,1
COMMENTS
a(10^k) does not exist, where k is any positive integer. - Pawel P. Mazur (Pawel.Mazur(AT)pwr.wroc.pl), Mar 13 2005
Dartyge, Luca, & Stanica show that a(n) = 0 iff n is a power of 10. - Charles R Greathouse IV, Oct 23 2009
LINKS
Cecile Dartyge, Florian Luca and Pantelimon Stanica, On digit sums of multiples of an integer, Journal of Number Theory, 129 (2009), 2820-2830. [From Parthasarathy Nambi, Aug 22 2009]
EXAMPLE
a(21) = 10101 = 481*21.
PROG
(PARI) ispow10(n)=my(k); ispower(n, , &k); k==10||n==1||n==10
a(n)=my(k, s); if(ispow10(n), 0, s=sumdigits(k=n); while(sumdigits(k+=n)!=s||ispow10(k/n), ); k) \\ Charles R Greathouse IV, Feb 04 2013
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Sep 01 2003
EXTENSIONS
More terms from Pawel P. Mazur (Pawel.Mazur(AT)pwr.wroc.pl), Mar 13 2005
STATUS
approved
