OFFSET
1,1
FORMULA
Positive integers n such that A195860(n)=7.
EXAMPLE
24^1 = 24 -> Sum_digits(24) = 6, and 24 is a multiple of 6.
24^2 = 576 -> Sum_digits(576) = 18, and 576 is a multiple of 18.
24^3 = 13824 -> Sum_digits(13824) = 18, and 13824 is a multiple of 18.
24^4 = 331776 -> Sum_digits(331776) = 27, and 331776 is a multiple of 27.
24^5 = 7962624 -> Sum_digits(7962624) = 36, and 7962624 is a multiple of 36.
24^6 = 191102976 -> Sum_digits(191102976) = 36, and 191102976 is a multiple of 36.
24^7 = 4586471424 -> Sum_digits(4586471424) = 45, and 4586471424 is not a multiple of 45.
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(2000, 6);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava & Giorgio Balzarotti, Nov 22 2007
EXTENSIONS
More terms from Max Alekseyev, Sep 24 2011
STATUS
approved