OFFSET
1,2
REFERENCES
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Mike Keith, Power-sum numbers, J. Recreational Mathematics, Vol. 18, No. 4 (1986), pp. 275-278. (Annotated scanned copy)
EXAMPLE
21 = (2+1)+(2^3+1^3)+(2^3+1^3), with e_1, e_2, e_3 = 1, 3, 3.
MATHEMATICA
q[n_] := Module[{d = IntegerDigits[n], v = {}, k = 1, s, ans = False}, If[Max[d] == 1, ans = Divisible[n, Total[d]], While[(s = Total[d^k]) <= n, AppendTo[v, s]; If[Length[IntegerPartitions[n, All, v]] > 0, ans = True; Break[]]; k++]]; ans]; Select[Range[200], q] (* Amiram Eldar, Sep 04 2021 *)
CROSSREFS
KEYWORD
nonn,easy,nice,base
EXTENSIONS
Corrected and extended by Naohiro Nomoto, Mar 11 2001
STATUS
approved