OFFSET
1,2
COMMENTS
A005188 is a subsequence of this sequence.
Sequence is finite. In particular, a(n) < 10^60. If k >= 10^60, then A101337(k) < k. - Chai Wah Wu, Feb 26 2019
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..109 (full sequence; first 56 terms from Chai Wah Wu)
Barry Fagin, Idempotent Factorizations of Square-free Integers, Preprints (2019).
EXAMPLE
For k = 1, (1^1)/1 = 1;
for k = 459, (4^3 + 5^3 + 9^3) / 459 = 2.
MATHEMATICA
Select[Range[10^6], IntegerQ[Total[IntegerDigits[#]^IntegerLength[#]]/#] &] (* Michael De Vlieger, Aug 01 2019 *)
PROG
(PARI) isok(n) = frac(A101337(n)/n) == 0; \\ Michel Marcus, Feb 11 2019
(PARI) select( is(n)=!(A101337(n)%n), [0..999]) \\ M. F. Hasler, Nov 17 2019
(Python)
A306360_list, k = [], 1
while k < 10**9:
s = str(k)
l, c = len(s), 0
for i in range(l):
c = (c + int(s[i])**l) % k
if c == 0:
A306360_list.append(k)
k += 1 # Chai Wah Wu, Feb 26 2019
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
Ctibor O. Zizka, Feb 10 2019
EXTENSIONS
a(22)-a(37) from Daniel Suteu, Feb 10 2019
STATUS
approved