|
|
A174944
|
|
Greatest number k such that sum of the n-th powers of the digits of k is greater than k.
|
|
0
|
|
|
99, 1999, 19999, 199999, 2999999, 29999999, 299999999, 2999999999, 29999999999, 299999999999, 2999999999999, 29999999999999
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
2,1
|
|
REFERENCES
|
J.M. De Koninck, Ces nombres qui nous fascinent. Entry 19999 p.212. Ellipses, 2008.
|
|
LINKS
|
|
|
EXAMPLE
|
a(4) = 19999 is in the sequence because, if k > 19999, sum of 4th powers of digits < k.
|
|
MAPLE
|
with(numtheory):for k from 1 to 10 do:maxi:=0:for n from 1 to 2000000 do:l:=length(n):n0:=n:s:=0:for m from 1 to l do:q:=n0:u:=irem(q, 10):v:=iquo(q, 10):n0:=v :s:=s+u^k:od: if s>n and s>maxi then maxi:=s:n1:=n:else fi:od:print(n1):od:
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|