OFFSET
1,1
FORMULA
Positive integers n such that A195860(n) = 9.
EXAMPLE
180^1 = 180 is a multiple of Sum_digits(180) = 9;
180^2 = 32400 is a multiple of Sum_digits(32400) = 9;
180^3 = 5832000 is a multiple of Sum_digits(5832000) = 18;
180^4 = 1049760000 is a multiple of Sum_digits(1049760000) = 27;
180^5 = 188956800000 is a multiple of Sum_digits(188956800000) = 45;
180^6 = 34012224000000 is a multiple of Sum_digits(34012224000000) = 18;
180^7 = 6122200320000000 is a multiple of Sum_digits(6122200320000000) = 18;
180^8 = 1101996057600000000 is a multiple of Sum_digits(1101996057600000000) = 45;
180^9 = 198359290368000000000 is not a multiple of Sum_digits(198359290368000000000) = 63.
MAPLE
readlib(log10); P:=proc(n, m) local a, i, k, w, x, ok; for i from 1 by 1 to n do a:=simplify(log10(i)); if not (trunc(a)=a) then ok:=1; x:=1; while ok=1 do w:=0; k:=i^x; while k>0 do w:=w+k-(trunc(k/10)*10); k:=trunc(k/10); od; if trunc(i^x/w)=i^x/w then x:=x+1; else if x-1=m then print(i); fi; ok:=0; fi; od; fi; od; end: P(10000, 8);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava & Giorgio Balzarotti, Nov 23 2007
EXTENSIONS
More terms from Max Alekseyev, Sep 24 2011
STATUS
approved