Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #7 Dec 08 2018 03:02:45
%S 0,0,0,0,0,0,0,0,0,0,0,30,210,780,2100,4650,9030,15960,26280,40950,0,
%T 210,960,2850,6720,13650,24960,42210,67200,101970,0,780,2850,7290,
%U 15540,29400,51030,82950,128040,189540,0,2100,6720,15540,30720,54900
%N (Sum of digits of n)^5 - (sum of digits^5 of n).
%C a(n) = 0 iff n is a single-digit number or is a power of ten times a single-digit number.
%t f[n_] := Plus @@ IntegerDigits[n]^5 - Plus @@ (IntegerDigits[n]^5); Table[ f[n], {n, 0, 100}]
%K nonn,base,easy
%O 0,12
%A _N. J. A. Sloane_ and _Robert G. Wilson v_, May 04 2002