OFFSET
0,1
LINKS
Felix Fröhlich, Table of n, a(n) for n = 0..10000
EXAMPLE
a(13) = 6 since 13_6 = 9 = 3^2 and this is the smallest such base.
PROG
(PARI) a(n) = {for (b=2, n+2, if (issquare(fromdigits(digits(n), b)), return (b)); ); return (0); } \\ Michel Marcus, Nov 20 2017
CROSSREFS
KEYWORD
base,easy,nice,nonn
AUTHOR
Erich Friedman, Jun 27 2001
EXTENSIONS
Name clarified by Felix Fröhlich and Kevin Ryde, May 17 2021
STATUS
approved