login
Numbers n such that the sum of the 4th powers of their digits > n.
1

%I #11 Feb 16 2013 17:34:06

%S 2,3,4,5,6,7,8,9,12,13,14,15,16,17,18,19,22,23,24,25,26,27,28,29,30,

%T 31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,

%U 54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73

%N Numbers n such that the sum of the 4th powers of their digits > n.

%C The sequence is finite and contains 5832 numbers. If n > 19999, sum of 4th powers of digits < n (see reference).

%D J.M. De Koninck, Ces nombres qui nous fascinent. Entry 19999 p.212. Ellipses 2008.

%H Nathaniel Johnston, <a href="/A174908/b174908.txt">Table of n, a(n) for n = 1..5832</a> (full sequence)

%e 73 is in the sequence because 7^4 + 3^4 = 2482 > 73.

%p with(numtheory):k:=0:for n from 1 to 20000 do:l:=length(n):n0:=n:s:=0:for

%p m from 1 to l do:q:=n0:u:=irem(q,10):v:=iquo(q,10):n0:=v :s:=s+u^4:od: if s>n then k:=k+1:printf(`%d, `,n):else fi:od:print(k):

%K nonn,easy,base,fini,full

%O 1,1

%A _Michel Lagneau_, Dec 02 2010