OFFSET
1,5
COMMENTS
a(n) > 0 for n >= 11 since 15 is n written in base n-5.
The only perfect k-th powers (k >= 2) that can appear in this sequence are m^k with 2 <= m <= 5 and k a prime number.
LINKS
Nathan Fox, Table of n, a(n) for n = 1..10000
MATHEMATICA
Table[SelectFirst[Range[6, 10^3], DigitCount[n, #, 5] > 0 &], {n, 11, 120}] (* Michael De Vlieger, Mar 10 2016, Version 10 *)
PROG
(PARI) a(n) = if ((n<11) && (n!=5), 0, my(b=6); while(!vecsearch(Set(digits(n, b)), 5), b++); b); \\ Michel Marcus, Mar 10 2016
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Nathan Fox, Mar 08 2016
STATUS
approved